Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Paul Styler
Experienced
Topic Author
Posts: 26
Joined: 21 Feb 2016, 20:34

Uploader failed on big files with unknown error

24 Feb 2016, 07:02

In my experience with latest release of X3 i found issue or bug ( You can decide about it ) with uploader.
When i upload mp4 file with average size 30-50 M the uploader is works just fine.
When i try to upload files about 120 - 150 M the uploader working strange - it start to upload, then, when about 8-9% is done it's start upload from the beginning and after short time it's falling with UNKNOWN ERROR message.
My php info can be checked here
http://paulstyler.com/testphp.php
PAUL STYLER PHOTOGRAPHY
The art comes true
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Uploader failed on big files with unknown error

24 Feb 2016, 07:23

If you are dealing with massive 120 - 150 M files, you are playing with fire. I see your server has some strangely high values, so I assume it is a DV server or entirely dedicated? There could be so many things on the server that blocks such a massive upload though: post_size_limit, memory_limit, upload_max_size, firewalls etc, glitch in network ... normal on shared servers is only 2MB.

We use an industrial-standard uploader:
https://github.com/blueimp/jQuery-File-Upload

Files of such size I would recommend uploading by FTP. FTP have limitations to file uploads like a http-javascript uploader does, and can continue broken connections. A http-upload may also upload per "chunk", which would affect the max_uploads.
 
User avatar
Paul Styler
Experienced
Topic Author
Posts: 26
Joined: 21 Feb 2016, 20:34

Re: Uploader failed on big files with unknown error

24 Feb 2016, 11:16

I use dedicated server
The main idea of Your gallery, that this is one stop solution for creating photography web site and comfortable media management system.
High values of max. upload size and post size is not so dangerous - wetransfer, amazon cloud disc and many other web services today let users to upload files even up to 25 Gb at 1 file :)
What is interesting - if i can increase the upload size in the script that You implement as uploader ?
PAUL STYLER PHOTOGRAPHY
The art comes true
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Uploader failed on big files with unknown error

24 Feb 2016, 12:12

To be honest, I don't know why it fails. I'm just saying, I can't really imagine it would be something directly "wrong" with the code in the uploader.
What is interesting - if i can increase the upload size in the script that You implement as uploader ?
I just can't see that any specific limit is set anywhere. I will do some tests myself early next week and reply here.
High values of max. upload size and post size is not so dangerous - wetransfer, amazon cloud disc and many other web services today let users to upload files even up to 25 Gb at 1 file
I agree. Just keep in mind these are professional hosted services, not private servers. You can't exclude server-issues if an upload just "fails" and there are no limitations in the uploader code itself. I will do some tests.