I’m working on a project that is primarily made up of user generated content (mostly photos). I’ve got some Safecracker entry forms that I’m using to allow users to create entries and everything is working fine. The problem I’m having is that now that iOS supports file inputs, I’m getting massive (2mb+) images uploaded from iPhones which take quite a long time to upload and even longer to size and crop (and rotate based on exif data).
I’ve found something that I think could be a solution, but I’m not sure how exactly to make it work with a Safecracker form. What I’m doing is taking the image that a user selects, putting it in a canvas, resizing it to a more acceptable size, and then getting base64 encoded data. My issue is that I have no idea how (or even if it’s possible) to upload an image that’s encoded as base64 data.
Does anybody have any experience with this type of thing? I did see one thread in the archived forums, but there was never a solution.
Hi Andrew,
Um… wow. I don’t think the answer is going to be in ExpressionEngine or SafeCracker. You might need to go outside-the-box with a little more JavaScript.
What I will do is move this over into Development and Programming to get it in front of capable audience.
Cheers,
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.