-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
bootstrap-fileinput: "fileupload": Error loading the piexif.js library. #1286
Comments
This happens because |
oopss... excuse me. I thought I've loaded piexif.js. But. shouldn't this option defaults to false as it depends on an extra script?. Once again, thank you, excuse me and congratulations on a great, great job!! |
Will note an enhancement for defaulting |
Hi, the problem remains although I put the autoOrientImage to false. |
Please share a JS Fiddle to reproduce your issue to understand. |
Same problem. When adding a .pdf file |
Same problem :( |
Folks - note as mentioned in this comment, this depends on how you are configuring and coding your app.
I am not sure what the issue is - so please share a JS fiddle to reproduce and understand. You can cross check the plugin demo pages where piexif.js is not loaded in any of the demos except the file image management demo and where you do not have any issues. There are 2 reasons where piexif.js is needed and you must load it on your page if you have configured your app accordingly:
Check your configuration and if you have an issue please provide a JS Fiddle to reproduce your issue. |
Here's the example. Just add an image and check the console. |
Of course if I load the piexif.js file, the problem disappears, but I don't need it. |
Thanks for the fiddle ... will check |
Resolved with latest update. |
pleased to help! |
Yes Thanks! |
Hello! I have the same error here. Using Bootstrap 4.1.3, JQuery 3.3.1 and Bootstrap-File-Input 4.5.0: My JS:
My HTML:
And the icons do not appear on the edge of the window: https://imgur.com/a/sckwtZi EDIT:
|
same here, error appears when selecting a new image. |
Get the latest code from dev-master (v4.5.1) - it will be tagged with new release soon. |
Ok thx, are you going to include it in the sass branch as well? (I'm using that one) |
yes |
Thanks! |
I updated the version to 4.5.1 using Bower and the error persists after selecting an image to upload. |
Using v4.5.2 Also seeing: piexif.js shows it is loaded in source on the page from your plugin $model, 'attribute' => 'attachment_1[]', 'options' => ['multiple' => true, 'autoOrientImage'=>false] ]); ?> |
The first example worked for me |
I'm using version 5.0.1 and have the same problem. |
Read about autoOrientImage property in docs for 5.x. Either load the piexif library or set the above property explicitly to false. |
Yes I did, I thought that the property was false by default. |
first of all: GREAT JOB!!!
Steps to reproduce the issue
this is my plugin initialization:
this is the html part,
<input id="fileupload" type="file" name="file" multiple>
I know that I've should named it as file[], but the server which receives the files expect name to be file. And it doesn't produce any error.
Expected behavior and actual behavior
The plugin seems to work correctly, but in the chrome console I've get the piexif.js error every time I upload a file. I'm just reporting it.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: