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

PDF upload not working, shows spinning wheel, throws js errors #1870

Closed
8 of 18 tasks
jrajamaki opened this issue Aug 16, 2024 · 8 comments
Closed
8 of 18 tasks

PDF upload not working, shows spinning wheel, throws js errors #1870

jrajamaki opened this issue Aug 16, 2024 · 8 comments

Comments

@jrajamaki
Copy link

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of bootstrap-fileinput.
  • This is not an usage question. I confirm having read the plugin documentation and demos.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

Steps to reproduce the issue

  1. Go to demo page
  2. Upload pdf file

Expected behavior and actual behavior

When I follow those steps, I see spinning wheel without any preview and error in console: Unhandled Promise Rejection: Error: End-Of-Stream.

I was expecting, seeing a file-icon as generic preview item.

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Safari

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version:
  • bootstrap-fileinput version:

Isolating the problem

  • This bug happens on the plugin demos page
  • The bug happens consistently across all tested browsers
  • This bug happens when using bootstrap-fileinput without other plugins
  • I can reproduce this bug in a jsbin

Related

#1822

@kartik-v
Copy link
Owner

Greetings. Cannot reproduce this issue in my environment here. Can you check if you have a local environment config conflict or PDF settings on browser preventing you doing something. Try it on different devices and systems to check the issue.

@jrajamaki
Copy link
Author

Greetings. Cannot reproduce this issue in my environment here. Can you check if you have a local environment config conflict or PDF settings on browser preventing you doing something. Try it on different devices and systems to check the issue.

@kartik-v Hello! Tested with two other machines and also iPhone, does not work with any of them when uploading PDF file using Safari browser. For example, uploading The Foo Bird does not work.

@code-knitter
Copy link

Could this be related to #1862 ? The OP doesn't specify whether they use filetype.min.js, but the symptoms match. We had problems that match this description and found that the errors went away when we included filetype.js instead of filetype.min.js as described in #1862

@kartik-v
Copy link
Owner

kartik-v commented Sep 5, 2024

Yes maybe related. The issue #1862 has a resolution. Do check with latest codebase and let know and will reopen this if issue persists.

@kartik-v kartik-v closed this as completed Sep 5, 2024
@jrajamaki
Copy link
Author

@kartik-v - good news is that using filetype.js instead of filetype.min.js fixes the issue but bad news is that the bug still happens in 1b2aa33 when using filetype.min.js.

@kartik-v
Copy link
Owner

I have pushed a fix - check if this works. Thanks.

@kartik-v kartik-v reopened this Sep 18, 2024
@jrajamaki
Copy link
Author

I have pushed a fix - check if this works. Thanks.

Yes, this fixed the issue, thank you very much.

Any estimation on new release?

@kartik-v
Copy link
Owner

Will post a new release soon.

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

3 participants