Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » uploading assets

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

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

Page: 1
Go to End
Author Topic: 10750 Views
  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    uploading assets Link to this post

    Hi Folk

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

    Thank you

    Nicolaas

  • Andy
    Avatar
    230 Posts

    Re: uploading assets Link to this post

    You can use ftp to upload your assets, then visit the Files & Images section in the CMS to let SilverStripe know about them.

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: uploading assets Link to this post

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

  • steki
    Avatar
    Community Member
    4 Posts

    Re: uploading assets Link to this post

    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

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: uploading assets Link to this post

    Hey Dude

    Spot on, solved it....

    Thank you

  • vevmesteren
    Avatar
    7 Posts

    Re: uploading assets Link to this post

    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

    10750 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.