Comments (3)
Can you please give me an example of data, which you try to submit?
from carrierwave-base64.
I also experienced this problem and solved it by removing that condition. It turns out not all image's base64 strings end with "==". You can read more about that here:
http://stackoverflow.com/questions/6916805/why-does-a-base64-encoded-string-have-an-sign-at-the-end
Regarding my solution I'm not really sure if it's the best one but it works anyways. On the other hand we can add a regular expression to make sure the string is a base64 encoded one but it might not be very efficient since most of the base64 strings are gonna be really long.
from carrierwave-base64.
If so, then it makes to sense to keep an additional condition in the code. The check for the string type should already do the separation of uploaded files from encoded strings.
Can you do a pull request then?
from carrierwave-base64.
Related Issues (20)
- Error: "ArgumentError : wrong number of arguments (given 1, expected 0)" HOT 4
- Avatar is not saving into database HOT 1
- Have to reload AR model when saving base64 photos. HOT 5
- Regression on 2.6.0 when passing base64 string HOT 5
- Support for multiple uploads ? HOT 4
- Permission denied @ unlink_internal - E:/project_name/public/uploads/1515432095-16344-0028-5553/video.mp4 HOT 1
- uninitialized constant CarrierWave::Mount (NameError) HOT 1
- "mount_base_64_uploader" method not recognized from rails console HOT 3
- issue with cloudinary gem integration HOT 1
- Validation fails on :file attribute HOT 4
- NoMethodError undefined method _will_change HOT 1
- Not able to nullify file field in 2.8.0 HOT 5
- When i supply base64 string it works but during update when the string is from the s3 image sets to nil HOT 3
- Wrong data format for automatic detection. `.ai`instead of `.pdf` HOT 3
- Save as JPG instead of PNG HOT 1
- Not working for multiple file upload HOT 1
- try to use carrierwave-base64 with nobrainer HOT 5
- depending on mimemagic, licensing problem with GPL HOT 13
- mimemagic dependency HOT 1
- NameError (uninitialized constant CarrierWave::MiniMagick::ImageProcessing): HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carrierwave-base64.