Active
Project:
Image Upload
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
17 Oct 2008 at 13:47 UTC
Updated:
22 Aug 2014 at 13:39 UTC
Jump to comment: Most recent
Dear,
I created a CCK image field, But when try to upload it gives error "The file could not be uploaded." How can i solve this issue..
Comments
Comment #1
abdulhaleems commentedDear,
I created a content type CCK image field, But when try to upload it gives error "The file could not be uploaded." How can i solve this issue..
PLease solve this issue very urgent
Comment #2
abdulhaleems commentedComment #3
ValerieCBL commentedI have the same problem :( I'm trying to use the image field module with image cache to insert thumbnail teasers on the front page that will open into a new window when clicked that will have a image gallery. OMG... this is tricky!
Comment #4
bojanz commentedImage Upload has nothing to do with CCK, imagefield or imagecache. It's based on the drupal upload module.
Still, if you can't upload a file from drupal, it's probably due to the permissions of your files folder.
If all this has something to do with image_upload, post more info and I will be glad to help.
Sorry for not looking at the boards guys, I work much and travel much, so sometimes it's much faster to contact me by email ;)
I promise to keep a better track of it in the future.
Comment #5
13rac1 commentedClosing two year old issue. Re-open if needed.
Comment #6
cblanglois commentedNow I'm facing the same problem of "The file could not be uploaded." When I use the upload fields for my newsletter thumbnail and newsletter pdf. How do I solve this> I'm using Drupal 7
Comment #7
mittalpatel commentedDid you check if the path given on the File System doesn't have any issue? Watch out on http://yoursite/admin/config/media/file-system and make sure the fields of "Public file system path" or "Temporary directory" are not in red.
Comment #8
cblanglois commentedThanks a lot, Mittal! Solved it. It was, indeed, in red.
Comment #9
talas commentedTry to chmod the directory "image" under "sites/default/files/field/" to 777
Comment #10
ankitas-1 commentedComment #11
rashmi1 commentedhello could u plz tell me how did u solved the issue? and which files permissions are to be changed?
Thanks
Comment #12
Ajascosoft commentedThe first thing is to check in your php.ini file to see if you have file uploads turned on.
Secondly, check your file system settings to ensure that none of the settings is invalid (In red)
If all these are ok, then the issue has to do with permission on the server. Drupal by default stores files in /sites/default/files. With CCk or in drupal 7 when you create a file field, it creates a sub-directory within the files folder.
To effectively solve the issue, change the permission on "/sites/default/files" folder including all files and directories in the files folder.
Example:
cd /opt/lampp/htdocs/[site name]/sites/defaultchmod 777 files/Now drop into the files folder and apply the same permission levels on all contents in the folder (Please note this may have security implications if you do not want some folders to be accessed by certain people on the server)
cd fileschmod 777 *This solved my problem and i hope it does for you too.
Regards
Comment #13
mark_fullmerIn addition to checking the file permissions as Ajascosoft suggests, check file/directory ownership. If the files directory is owned by, say, root, Drupal may not be able to write to it. In this case:
chown -R [your_account_name] files