Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Simple uploads don't work

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

Page: 1
Go to End
Author Topic: 1110 Views
  • DazzaJ
    Avatar
    Community Member
    3 Posts

    Simple uploads don't work Link to this post

    I have recently installed Silverstripe and I do like it for a simple CMS and blog, but it seems to have numerous problems.
    The primary one seems that you basically can't upload anything reliably.
    I tried upload files and images and just get "Not a valid file!" errors.
    If I use a FTP program then I have no drama except I have to constantly "Look for new files" and refresh and keep my fingers crossed.
    I tried the "DisplayAnything" addon and that doesn't seem to do anything, but then again it appears you have to add 40 lines of code to some page somewhere to "implement" it? Lost me. Thats another story.
    Is there any patch or update, access settings or something that will enable me to simply upload files and images via the Files and Images section. (Or an addon/extension that works)
    It DOES sort of work using FTP clients but that basically defeats the purpose!
    I have noticed numerous concerns on uploads but can't seem to find a answer!

  • IOTI
    Avatar
    Community Member
    187 Posts

    Re: Simple uploads don't work Link to this post

    What kind of files are you trying to upload? are they large files? that could be causing issues as well.

    see this thread for some more info on that.

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Simple uploads don't work Link to this post

    This also depends on the version of SS you are using...

    2.4.5 - http://open.silverstripe.org/attachment/ticket/5547/2.4.0-FileUpload.diff
    2.4.7 - http://open.silverstripe.org/changeset/114471

    (well for me anyway!)

  • DazzaJ
    Avatar
    Community Member
    3 Posts

    Re: Simple uploads don't work Link to this post

    Trying to upload png, jpg and gifs for use within articles etc.
    Also trying to upload pdf and other files used in association with the artical. pdf, zip etc

    I run SS version 2.4.7 on a vps I own, running Centos 5 with 1GB mem etc.
    PHP 5.3.8, with memory limit 64M, Post_max = 8M , upload max size = 2M
    The files are generally less than a 100K.
    Larger files I upload manually using FTP
    On a rare occasion files will give the error, but then magically appear when I look for new files etc.
    The problem with manually uploading graphics, is it doesn't seem to create the resampled images all the time.

    I also find if I try setting up sb-folders then it doesn't seem to recognise the paths in many cases.
    Again I generally have to manually create the folder as well as create it through the CMS with the same name. Sometimes I can use them, sometimes I will need to delete and try again.
    I was hoping I could set up file system to mimic site map, to store images and files within their own groups, but it seems to want everything in the main assets folder or ONE subfolder, ie assets/downloads, assets/images etc. NOT assets/story1/images or assets/story1/downloads/files/ etc

    Is there any info on what file access should be. because I seem to have to set everything to 777 which I am not real keen on, and it also seems like it might be an access problem.

  • DazzaJ
    Avatar
    Community Member
    3 Posts

    Re: Simple uploads don't work Link to this post

    Just an update: I tried reinstalling SS on a Xamp on windows and it seemed to work fine. When I reinstalled fresh onto my Centos vps, it did exactly the same. Definately something to do with permissions but unfortunately couldn't find an answer.
    I even changed permissions of everything to 777 so I assume its an iternal bug.
    Thanks for the help, but we've had to change to an alternative for the main site. The upload / download is a primary requirement we needed, and although its possible using FTP it still seemed a little clunky.
    SS works like a treat on xampp, just not my VPS.
    Waiting eagerly for version 3 to come out and hopefully solve a few of the minor issues.
    We'll keep trying an the other site and see what happens.

  • codem
    Avatar
    Community Member
    6 Posts

    Re: Simple uploads don't work Link to this post

    Hi, I'm the author of the DisplayAnything module.

    I'm interested in your issue as there is no extra code to implement - where is this extra 40 lines of code?
    You can add a template for the public side of the site but that's up to you as we don't know how you are going to implement your gallery or file list. The example on the Github page should give some initial pointers.

    If you have an issue implementing the module, please create an issue ticket https://github.com/codem/DisplayAnything/issues so we can resolve anything outstanding as we head to a stable 1.0 release. Please include browser information and any error messages.

    Thanks
    James, Codem

    "I tried the "DisplayAnything" addon and that doesn't seem to do anything, but then again it appears you have to add 40 lines of code to some page somewhere to "implement" it? Lost me. Thats another story.

    1110 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.