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

Error when uploading images


Reply


3 Posts   1511 Views

Avatar
Jontech

Community Member, 1 Post

25 June 2009 at 1:30pm

Our hosting company recently got bought out by another, and therfore all our sites moved to the new host. This has caused lots of problems with all the Silverstripe sites. We have fixed them all but one. Getting an error message when trying to upload an image through the CMS. Here is the complete error log:

------------------------------------>
Error: Folder::addUploadToFolder() File is not a valid upload
At line 215 in /home/Salutcon/domains/salut.co.nz/public_html/sapphire/filesystem/Folder.php

user_error(Folder::addUploadToFolder() File is not a valid upload,256)
line 215 of Folder.php

Folder->addUploadToFolder(Array)
line 200 of AssetAdmin.php

AssetAdmin->doUpload(Array,Form)
line 238 of Controller.php

Controller->run(Array)
line 119 of Director.php

Director::direct(admin/assets/index/0)
line 158 of main.php
------------------------------------>

Any help or suggerstions greatly appreciated!

Avatar
Roweena

Community Member, 28 Posts

14 August 2009 at 7:52am

Hi did you resolve this? I'm having a similar problem, webhost has just changed everyone's FTP settings to TLS and now none of my SS installations can upload images...getting "File is not a valid upload".

Avatar
dalesaurus

Community Member, 283 Posts

14 August 2009 at 9:36am

Edited: 14/08/2009 9:42am

Can you folks provide your SS version information? Tracing that error I can see that you aren't running the latest, 2.3.3.

Also this sounds like a core permissions issue, see http://us.php.net/move_uploaded_file and ensure you have the right masks/perms set on your hosts AND that the permissions are recursive through all subdirs of /assets/.