Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading large file problem #4

Closed
blicksem opened this issue Jan 20, 2016 · 7 comments
Closed

Uploading large file problem #4

blicksem opened this issue Jan 20, 2016 · 7 comments

Comments

@blicksem
Copy link

Hi Henry,
I'm afraid I have to ask for your help one more time.
after uploading large files (over 40mb), I can see that the file is moved from the tmp directory to the upload directory, but then I'm getting a 'internal server error' message (I have attached the error messages given by the browser)

I hope you can help me again this time.

kind regards,

Niels Hubregtse

internal server error.txt

@henrylearn2rock
Copy link
Owner

That error.txt is not helpful. Please provide the actual 500 error from ColdFusion. Either from the coldfuison's log or if you use Developer Tool in Chrome, locate the 500 error in the network tab, and look at the actual response from the server.

@blicksem
Copy link
Author

Hi Henry,

I have attached the exception.log and the uploadhandler.cfc

The code runs without a problem when uploading small files (<40Mb), but returns an error when uploading files above 40Mb

If you wish, I can create an account for you in my application so that you can see for yourself what happens.

Thank you for helping

Niels

Ps. I'm running a Railo 4.2 server.

exception.zip

@henrylearn2rock
Copy link
Owner

The exception stated "Can't cast String [] to a boolean" for UploadHandler.cfc line 774.

Committed the fix, I think it should work, since in PHP !(anArray) == CF's !arrayLen(anArray) since both yield true if the array is empty.

@blicksem
Copy link
Author

Hi Henry,

Thanks for the fix, it worked like a charm.

Unfortunately I ran into another problem. When uploading multiple files (my test files where 50 small files (300kb - 30mb) and another set of 50 files (50kb - 1,5mb)), at random times an error occurs.

In ColdFusion the error says that an uploaded file can't be found, but gives not exception or error in the log files

In Railo I'm getting the same error, but in the log file (see attached) is an exception generated
exception.txt

Every run, the message occurs on a different file and in the upload folder files are missing, but the file that was't found is present. It look to me that somewhere in the code (line 265) the function "get_file_size" is called to early (when the file is not completely written).

Could you help out one more time (sorry)

Thanks in advance.

Niels

@henrylearn2rock
Copy link
Owner

I'm sorry, I do not think I have time to debug this issue.

@blicksem
Copy link
Author

Hi Henry,

Thanks for the heads-up, I can understand that you don't have time to debug.
Maybe if you can find a moment in the future, I would appreciate.
For now I will use another up-loader, less advanced component for uploading, .because I need a working multi-uploader that can be trusted.

Thanks again

Niels

@henrylearn2rock
Copy link
Owner

If you don't need all the fancy rotate and thumbnail generation, you can get away with just using HTML5 multiple file input, and use cffile uploadall

http://docs.lucee.org/reference/tags/file.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants