• Hello,

    is there a way to manually set the chunk size used for the transfer of large files?

    I am trying to use your plugin on a wordpress that runs on nginx and is located behind a load balancer.
    The plugin shows an http error.
    There is no error code shown, but I am quite sure it must be the infamous “413 request entity too large” .

    Thanks for your help!

    https://wordpress.org/plugins/advanced-uploader/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Oli Redmond

    (@ojredmond)

    Hi,

    I have made it dynamic based on the what the server thinks the limit is. when you turn off the advanced uploader what does wordpress say the upload limit? can you upload a file of that size?

    Thread Starter dweide

    (@dweide)

    Hi,

    when I use the standfard uploader amyx filesize of 107MB is displayed, this corresponds to the Settings I already made in php.ini etc.
    And an upload of that size works OK.

    But the problem seems to be the loadbalancer that is transparent to your plugin, so I guess there is no way to autodetect that.

    The desired filesize for our purpose is way above 1GB and I don’t think I can push the buffers that far.

    If you could pinpoint the code lines I would try to modify and test on my own…..

    Thanks for your reply!

    Plugin Author Oli Redmond

    (@ojredmond)

    Hi,

    the easiest way would be change the upload script to adjust the transport overhead.

    edit line 97 of advanced-uploader/js/upload.js to change overhead size. currently it is set to 2kbytes.

    you will also need to edit line 270 of advanced-uploader/upload.php to remove the min from the filename.

    let me know if that helps.

    Oli

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘chunk size’ is closed to new replies.