• Resolved palychwp

    (@palychwp)


    I set the “limit” attribute to 10485760 (limit:10485760) but when I’m trying to load file that have bigger size I see the progress bar. File is uploading to the server. And then I see the warning about filesize but I still can submit the form with this error. When I submit form I see that file is uploading again with all another post data from the form in devtools. Also if I remove the file with remove button it still submiting with the form.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello palychwp,

    You will seen an error message but still You click submit button but the file that has an error will not be uploaded to the server.

    Glen

    Thread Starter palychwp

    (@palychwp)

    Hello Glen.

    Let me explain. Form usually submits 1-2 seconds without file. For example I set the limit to 10mb. When I choose the file it starts uploading immediately. I pick file wich have 30mb size, then I have to wait several seconds or even minutes while it’s uploading, and THEN I see the error about size. If I try submit the form now, after any file input changes, it takes the same time as file uploading, up to 1 minute. And it doesn’t matter if I removed the file or not.

    Clients doesn’t wait and leave the page.

    Is it possible to check file size before uploadin and/or form submission?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    okay I understand will change this functionality hopefully I can add this on my next update.

    Regards,
    Glen

    Thread Starter palychwp

    (@palychwp)

    Ok. Thanks. I will wait for updates.

    Thread Starter palychwp

    (@palychwp)

    Hi Glen!

    I saw that you’d fixed problem with filesize validation. But one bug is still there.

    As I said earlier when I pick and then remove file it still sends with the form. I pick 30mb file, I see an error, I remove file and send the form. And then I have to wait and wait. I go to the Network Tab and analyze request.

    In form data I see:

    Content-Disposition: form-data; name="file"; filename="codpaste-teachingpack.pdf"
    Content-Type: application/pdf
    

    In Request Headers I see
    Content-Length: 31592694

    And my submission took 4.4min

    Remove button removes file from the list but it still in the input.

    I made console.log(jQuery('input[name="file"]').get(0).files) in Console and I saw Filelist object

    FileList {0: File, length: 1}
    0: File
    lastModified: 1558599379002
    lastModifiedDate: Thu May 23 2019 11:16:19 GMT+0300 (Восточная Европа, летнее время) {}
    name: "codpaste-teachingpack.pdf"
    size: 31591292
    type: "application/pdf"
    webkitRelativePath: ""
    __proto__: File
    length: 1
    __proto__: FileList

    So you need to clear file input value.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @palychwp,

    Sorry about that, I resolve and prioritize this issue.

    Thanks for reporting.

    Regards,
    Glen

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    This issue has been fixed, please update to the latest version 1.2.6.0.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Closing this thread.

    Thread Starter palychwp

    (@palychwp)

    Hi Glen! Thanks a lot.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘File uploading is working incorrect.’ is closed to new replies.