Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
"The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct file name."
When a user registers, the registration goes through without any problems but they get the error message posted above after they submit their registration. In this case the user opted to not upload a user picture and go with the default image.
The only file field available on registration is the user picture which in my case is managed / handled by imagecache profile.
The default image is displaying as her user picture.
Comments
Comment #1
GeekyLass CreditAttribution: GeekyLass commentedI'm still experiencing this problem.
Comment #2
andypostTry to setup right permissions on your files folder
Comment #3
mikebell_ CreditAttribution: mikebell_ commentedI'm getting this on a dev site at the moment.
The imagecache folder is set to chmod 775
Full error is - "The selected file /var/www/html/drupal-6.15/0 could not be copied, because no file by that name exists. Please check that you supplied the correct filename."
This is in a multisite environment as well.
Comment #4
andypostIt seems that temp folder setup is wrong
Comment #5
buddaTemp folder setup on /admin/settings/file-system is set to the default of /tmp
THis is fine for file uploads, imagecache and all over file fiddling operations being done in Drupal.
Any other ideas?
Comment #6
buddaThe error, for me, only seems to occur if I don't specify a picture when creating the user in the admin.
If i specify an image no error is generated.
Which leads me to believe its something to do with the default avatar/picture setting? i've been debugging the code but can't find the cause.
Comment #7
buddaI found the problem was actually caused by a completely different module! http://drupal.org/project/reg_with_pic
An update last month fixed the bug too.
Comment #8
andypostIs this still an issue?
Comment #9
mikebell_ CreditAttribution: mikebell_ commentedThe issues me and budda had are fixed now.
Comment #10
andypostSo lets mark it fixed, because it caused not the ICP