When trying to create an image node, an error is reported. "The selected file /var/www/drupal/files could not be copied". But if i attach the image to the node, instead of creating it directly, it wokrs just fine.

Comments

Pewter Tankard’s picture

Priority: Normal » Critical

Happens with the 5.x-1.x-dev build too.
However... .a bit more evidence for you. This only happens for me if I go to Administer -> Content Management -> Content Types and edit the Image content type.

I'd gone there to remove the "Promote to Front Page" flag and, after saving these settings, I found that I couldn't create image nodes via the conventional Browse... and then Preview and/or Submit. I went back and reset this flag in the Image content type, pressed Save Settings and the same bug occurred. It was only when I went back to the Image content type and pressed "Reset Settings" that I got the correct functionality back when creating new Image nodes.

Hope this helps.

seanr’s picture

Has anyone looked at this? It's been marked critical for a month and a half and has gotten nothing more than a "me too".

seanr’s picture

Title: Problem Creating Image Nodes » Changing image content type defaults breaks image uploads

Changed title

seanr’s picture

The Attach Images and Attachments options are both enabled by default when you pull up the image content type's settings page. Apparently that's just the default for the form, not what's actually enabled disabled until you hit submit, because having those enabled breaks the node's image upload. Those need to be disabled by default, and perhaps permanently for this type - at least Attach Images, since it's clearly incompatible. A user pulling up a content type settings page and simply hitting submit should never be able to break it but it will currently.

samo’s picture

I was bit by this too. Very frustrating to debug.

Can we have the defaults changed on install?

drewish’s picture

Status: Active » Fixed

i fixed this in 5/HEAD. if someone wanted to backport the fix, please do so and re-open this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)