4

I can upload BMP image files in my rails application using Blueimp jQuery file upload rails. But I could not preview BMP file only. How to fix this issue?

Blueimp - Sebastian explained this is an browser issue but in dropzone.js they are displaying the image in using canvas data.

I want to preview bmp image before upload. Even I found the way to convert BMP file in 2 methods,

  1. external method
  2. var dataUrl = canvas.toDataURL()

Now the problem is that, I could not find the respective callback method in bluimp. I am using jquery-fileupload-rails gem.

Anybody resolved this issue?

2 Answers 2

2

BMP file could not be previewed using blueimp jquery file upload rails.

Sign up to request clarification or add additional context in comments.

Comments

1

the current version that I use does allow BMP preview, just pass in the following option:

loadImageFileTypes: /^image\/(bmp|gif|jpeg|png)$/,

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.