summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2cca875)
Classic uploads (one single post request) were used even if HTML5 features were available as an optimization to avoid more requests than needed.
However, in case of badly configured server Jirafeau cannot try to resend a file with a lower size like async uploads.
Now, the js client is always using async uploads if HTML5 feature is available.
ref #234
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
{
var one_time_checkbox = document.getElementById('one_time_download');
var one_time = one_time_checkbox !== null ? one_time_checkbox.checked : false;
{
var one_time_checkbox = document.getElementById('one_time_download');
var one_time = one_time_checkbox !== null ? one_time_checkbox.checked : false;
- if (check_html5_file_api ()
- && document.getElementById('file_select').files[0].size >= max_size)
+ if (check_html5_file_api ())
{
async_upload_start (
max_size,
{
async_upload_start (
max_size,