Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

" Please set upload_temp_dir in php.ini "


Reply

1950 Views

Avatar
JackAttack

13 June 2009 at 3:19pm Community Member, 12 Posts

Hi,

I'm getting the following error when I attempt to upload files using the Files & Images tab:

There is no temporary folder for uploads. Please set upload_temp_dir in php.ini

Also when I try to upload using an image field on a custom page type, "File is not a valid upload" appears in the field after pressing Attach File.

I'm guessing both errors are caused by the same problem...

I'm on a shared host that doesn't allow access to php.ini, so is there a way to manually set the temp folder from within SilverStripe?

I read somewhere that SS automatically uses the /tmp/ folder and so I set its permissions to 777 but no good... I've also tried using a _ss_environment.php file (in which i believe you can maually define the temp foleder) but could never get the site to work with it (no input specified error or something). Should I try again?