<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Uploading pictures and files in Drupal 6.13 errors/problems - Simple solution

Published on
12,744 Points
6,744 Views
Last Modified:
Approved
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed.

Note: This is for Drupal 6.13.

Step 1: Go to Administer > Site configuration >  File System
Step 2: In the Temporary directory section of the page change it to a file location in drupal such as "sites/default/files/tmp". I usually change it to the corresponding directory the File system path has to avoid file location problems.

Therefore if the File system path is: sites/default/files then i change  the Temporary directory to sites/default/files/tmp.

tmp is the folder i created with the directory for which i would like tempoary files to go to. You can name it to any other suitable name if you wish other than tmp.

Step 3: Click Save Configuration.

Now for the easy path.

Step 4:  Go to Administer : User management > User settings.

Step 5:  Look for the section heading "Pictures". Under picture support select the radio button "Enabled". Some other fields should now appear.

Step 6: Under the heading "Picture image path:" input into the field sites/default/files/pictures. Make sure and create a folder named "pictures" in the directory or you'll get an error saying that it does not exist.

Step 7. Click Save Configuration and your done.

Step 8: Enjoy.

Important NOTE:

Make sure the upload module is enabled. it is disabled by default. Go to  Administer : Site building > Modules. Go to Core options heading and look for "upload", select the enable checkbox and then click Save configuration. Your done.

If you are having any problems with directorys remember use the File system path as your guide which is located at Administer > Site configuration >  File System.

If you are having problems with other file types go to  Administer : Site configuration > File Uploads and make sure that the file type you want to upload is in the "default permitted file extension" and the user meets all other requirements of the file upload settings..

Emile Jobity
Trying to make the world a more convenient place one article at a time.
0
Comment
0 Comments

Featured Post

OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Join & Write a Comment

Learn how to collaborate with office 365 Office Online
If you, like me, have a dislike for using Online Subscription anti-spam services, then this video series is for you. I have an inherent dislike of leaving decisions such as what is and what isn't spamming to other people or services for me and insis…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month