When I add an attachment to a node, it shows up after I click 'attach' to upload the file, but vanishes when I click either preview or save.

The user creating the node has permissions to upload and view attachments, this flexinode content type has 'attachments' enabled, upload module is enabled etc and I have added other attachments to the site without any problems. The attachment in question is hardly 100 kb, so no space issues either.

Any suggestions as to what might be wrong?

Comments

sami_k’s picture

More than likely an issue with the permissions of the files directory. Also, if the types are drupal files type, i.e. modules, the file will not show with .htaccess enabled.

--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Drupal Support)

radiofranky’s picture

I'm having the same problem.. using acidfree and tried to attach a WMV video segment of 10MB, but with no luck so far..

it shows finished uploading the file, but it vanishes and seems like it was never uploaded.. my video folder is empty.

any helps please..

s

coreyp_1’s picture

go to admin/settings/upload

make sure that "wmv" is in your list of accepted file extensions

nathandigriz’s picture

Check for a php error. I noticed that two of my sights running on php 4.4.1. and php 5 suddenly would not attach after the upgrades at site5. The file system code stopped working.

venkat-rk’s picture

Thanks, Sami and Nathan. Interestingly, my site is on Site5 too.

But, I just did the following and am still at a loss:

1.) Changed permission of 'files' to 777 from 740. No luck.
2.) Changed it back to 740 and tried uploading an attachment using a story node type. Works perfectly.

All my previous attachments and images were with permissions at 740, so drupal has no problem writing to the 'files' directory.

I have a feeling this has something to do with flexinode as attachments seem to work well with all the other content types.

Will check out the php thing, though.

venkat-rk’s picture

On a whim, I disabled flexinode attachments in the content type configuration and added a file field to the flexinode type. I was then able to upload an attachment!

The only problem is that the url goes something like:
http://domain.com/system/files?file=filename.doc

What could this be due to?

sami_k’s picture

File is private, check under settings for private/public files... also if phpsuexec is enabled it won't let files over 755 run, just so you know... I personally don't like Site5 because of mysterious errors that occur all the sudden are are not that easy to explain.
--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Drupal Support)

venkat-rk’s picture

Thanks for the tip. You are right, files are set to private, but phpsuexec isn't enabled.