<

Go Premium for a chance to win a PS4. Enter to Win

x

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

Published on
12,605 Points
6,605 Views
Last Modified:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month