FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: Guide on April 15, 2006, 05:15:55 PM

Title: File Upload Through Form
Post by: Guide on April 15, 2006, 05:15:55 PM
Has the file upload through form been forbidden ?
I had a script which worked till recently, used in a CMS to upload an image and link it to a text ; however I now get an upload error and it doesn't work anymore...

The $_FILES['img']['tmp_name'], when echoed, gives adresses like "/tmp/php61xSJtError"...

Problem or restriction ?
Title: Re: File Upload Through Form
Post by: admin on April 16, 2006, 07:17:56 AM
Be sure your file permissions are set correctly.

The directories that you are storing the uploaded files in need to be chmod'd to 770 or 775

Thank you,
FreePgs.com Admin
Title: Re: File Upload Through Form
Post by: Guide on April 16, 2006, 09:49:23 AM
Ok, it's working now... Thanks a lot !