Jump to:

10845 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Bulk Uploader Module: Testers needed!

Discuss all other Modules here.

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

Page: 1 2 3 4 5 6 7 8
Go to End
Author Topic: 12388 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    404 error..

    Interesting. The leading slashes seem to be the problem.

    Changing the upload_url and file_destination_path are not going to change anything because those are all set in the BulkUploader_Controller when the field is instantiated.

    Go to that section of the BulkUploader_Controller code (line 130-ish)

          $fields = new FieldSet(
             new SWFUploadField("UploadForm","","",array(
                'file_upload_limit' => '100', // how many files can be uploaded
                'file_queue_limit' => '100', // how many files can be in the queue at once
                'browse_button_text' => 'Choose files...',
                'upload_url' => '/'.$this->RelativeLink('handleswfupload')
             ))
          );

    try removing the leading slash on upload_url

    Almost there! Thanks so much for all your testing.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    Individual file selection is a priority for this weekend. I know exactly what I need to do. Just a matter of finding the time.

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    The 404 error message was definitely related to the 'upload_url' being incorrect.
    The only way I have been able to get the uploader to work is to define an absolute url as below

    'upload_url' => 'http://localhost/silverstripe/'.$this->RelativeLink('handleswfupload'),

    Note: I am testing this on a local server for now.

    It baffles me why the following relative url would not work, but it does not.

    'upload_url' => $this->RelativeLink('handleswfupload'),

    BTW, I am looking forward to the 'individual file selection' implementation this weekend.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    Yup. I've confirmed this bug. The latest revision has Director::absoluteURL() wrapped around every file path. That should clean up any ambiguity.

    Do you use SVN? You can start checking out my daily builds.

    I'm halfway through the file selection. Should be done tomorrow.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    The individual file selection feature is ready for testing. You can do an SVN checkout of the latest versions here:

    http://svn.codespaces.com/carlinowebdesign/bulk_uploader
    http://svn.codespaces.com/carlinowebdesign/swfupload

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    I have installed the latest svn files and did a dev/build.
    In the Manage Files section on the right, I see the drop down menu "--Import from folder--" without any import button, but when I select a folder, nothing happens. What am I supposed to see? How is this supposed to work?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    The contents of the folder should blind down after a folder is selected. See the Resources page at this demo:

    http://sandbox.carlinowebdesign.com/admin
    u: admin
    p: password

    If it doesn't work there, let me know what browser you're using. It's probably a javascript issue.

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Bulk Uploader Module: Testers needed! Link to this post

    I can see it using your sandbox, so the issue is not browser related. I wonder if it's once again related to defining an absolute URL instead of a relative one. What is actually loading in that iframe and where can I change its url to define an absolute url?

    By the way, when I select the Uploads folder (which has a lot of files), in Safari I do not get a vertical scrollbar (which I get in Firefox), Hence, the list is prematurely cropped and I cannot see the "import selected file(s)" button down the bottom. I have not tested this in IE. You may want to look at how you have defined the iframe. The overflow appears to be hidden.

    Also, it might be worthwhile to properly indent the nested folders so that you can see the folder hierarchy. Just a though!

    12388 Views
Page: 1 2 3 4 5 6 7 8
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.