Coder Social home page Coder Social logo

Comments (7)

henrylearn2rock avatar henrylearn2rock commented on May 22, 2024

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.

from jquery-file-upload-cfc.

blicksem avatar blicksem commented on May 22, 2024

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

from jquery-file-upload-cfc.

henrylearn2rock avatar henrylearn2rock commented on May 22, 2024

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.

from jquery-file-upload-cfc.

blicksem avatar blicksem commented on May 22, 2024

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

from jquery-file-upload-cfc.

henrylearn2rock avatar henrylearn2rock commented on May 22, 2024

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

from jquery-file-upload-cfc.

blicksem avatar blicksem commented on May 22, 2024

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

from jquery-file-upload-cfc.

henrylearn2rock avatar henrylearn2rock commented on May 22, 2024

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

from jquery-file-upload-cfc.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.