Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
How to Conver Base64 to image and save it in Fuelphp
ashizakp
December 2014
I sure there will be inbuilt function, I cant find that, Kindly help
Harro
December 2014
Accepted Answer
How about
http://stackoverflow.com/questions/11511511/how-to-save-a-png-image-server-side-from-a-base64-data-string
?
ashizakp
December 2014
$base64 = explode(',',Input::post('base64'));
File::Create(path,filename,base64[1]);
worked fine
Harro
December 2014
In itself this is not secure, have you thought about that? It allows anyone to create a file on your server using a HTTP POST.
Think about this, and use a File Area to make sure you limit the reach of the path to a specific directory.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
ashizakp
December 2014
Harro
December 2014