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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

uploading assets


Go to End


5 Posts   11273 Views

Avatar
Nicolaas

Forum Moderator, 224 Posts

30 May 2007 at 11:23am

Hi Folk

I would like to upload 500 assets all at once - is there a way to do this?

Thank you

Nicolaas

Avatar
Nicolaas

Forum Moderator, 224 Posts

30 May 2007 at 11:49am

thanks for your answer! Sounds like a good idea, except that the assets folders seems to be blocked for any CHMODS and any uploads

Avatar
steki

Community Member, 4 Posts

31 May 2007 at 11:47am

Edited: 31/05/2007 11:48am

Probably reason you have problems with chmod and upload is that your web server has created that folder (and is now a owner of files) so it is writable by your server not you, so if you really need this manual upload then try using some sort of chmod script like this bellow:

<?php
chmod('/FULL_PATH_TO_ASSETS_DIR', 777); // this should after upload be 755
// so after you finish comment line above and "restart" this page (refresh)
#chmod('/FULL_PATH_TO_ASSETS_DIR', 755); // later uncomment this line
?>

or much better read docs about chmod from php at http://www.php.net/chmod

Avatar
Nicolaas

Forum Moderator, 224 Posts

31 May 2007 at 2:28pm

Hey Dude

Spot on, solved it....

Thank you

Avatar
vevmesteren

7 Posts

9 November 2007 at 4:43am

when giving us the script you did, where would I run this. I did FTP multiple files to the Assets/Uploads folder but when I access the files&images section they do not show, how do I refresh this folder?

thanks