Dearest,
I created a CCK image field, But when try to upload information technology gives fault "The file could not be uploaded." How can i solve this issue..

Comments

abdulhaleems's picture

Dear,
I created a content type CCK prototype field, But when attempt to upload it gives error "The file could not be uploaded." How tin can i solve this issue..

PLease solve this issue very urgent

abdulhaleems's picture

Projection: CCK groups » Image Upload
Version: 5.x-1.ten-dev » vi.x-one.0
Component: Code » Miscellaneous
Priority: Normal » Critical

ValerieCBL's picture

I have the same problem :( I'm trying to use the image field module with image cache to insert thumbnail teasers on the front folio that will open up into a new window when clicked that will have a image gallery. OMG... this is tricky!

bojanz's picture

Status: Active » Postponed (maintainer needs more info)

Epitome Upload has nothing to do with CCK, imagefield or imagecache. It'due south based on the drupal upload module.

Still, if you can't upload a file from drupal, it'south probably due to the permissions of your files folder.

If all this has something to exercise with image_upload, post more info and I will be glad to help.

Sorry for non looking at the boards guys, I work much and travel much, and then sometimes it's much faster to contact me by email ;)

I promise to keep a ameliorate runway of it in the futurity.

13rac1's picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (stock-still)

Closing two twelvemonth sometime outcome. Re-open if needed.

cblanglois's picture

Now I'1000 facing the same problem of "The file could non be uploaded." When I utilize the upload fields for my newsletter thumbnail and newsletter pdf. How exercise I solve this> I'm using Drupal 7

mittalpatel's picture

cblanglois's picture

Thanks a lot, Mittal! Solved it. It was, indeed, in ruby.

talas's picture

Try to chmod the directory "image" under "sites/default/files/field/" to 777

ankitas's picture

Assigned: Unassigned » ankitas
Priority: Normal » Critical
Status: Closed (fixed) » Active

rashmi1's picture

hullo could u plz tell me how did u solved the issue? and which files permissions are to be inverse?

Thank you

Ajascosoft's picture

The first thing is to bank check in your php.ini file to run into if y'all have file uploads turned on.
Secondly, check your file system settings to ensure that none of the settings is invalid (In carmine)
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 inside the files binder.
To effectively solve the issue, modify the permission on "/sites/default/files" folder including all files and directories in the files binder.
Instance:
cd /opt/lampp/htdocs/[site name]/sites/default
chmod 777 files/
Now drop into the files folder and utilize the same permission levels on all contents in the folder (Please note this may accept security implications if you lot exercise not desire some folders to be accessed past certain people on the server)
cd files
chmod 777 *
This solved my problem and i hope it does for y'all too.

Regards

mark_fullmer's picture

In add-on to checking the file permissions as Ajascosoft suggests, check file/directory ownership. If the files directory is owned past, say, root, Drupal may not be able to write to it. In this case:

chown -R [your_account_name] files