erarmor.blogg.se

Resize image client side before upload javascript
Resize image client side before upload javascript











resize image client side before upload javascript resize image client side before upload javascript resize image client side before upload javascript

I could look at passing this over from the client side but this would create a security issue whereby one user could modify anothers photo. Again I would need to be able to resolve the member_id to do this. Compress Images Before Uploading for Performance JavaScript Codú 10K subscribers Join Subscribe 908 34K views 2 years ago javascript webdevelopment code Dont forget to like and. Next I think need to look at changing the filename field in the member entry in the database. Ive tried both the php parsing options for the template in the CP but the filename ends up literally as that string and the variable isnt being replaced. The uploader works great, however I was hoping I would be able to modify it to do something like this : I am trying to replicate this so I’ve put the php uploader into a template and Ive enabled php in the control panel for this template. Looking at how EE handles photo uploads it appears that it names them photo_ when they are uploaded. Ive started implementing Valums Ajax file uploader () which has some client-side javascript and a server side php uploader. Can I get EE to do the resize/crop for me or do I have to use a plugin ?Īlternatively perhaps there is an easy way to expose EE’s control panel image resizing / cropping tools through the front-end of my site ? Once the image is uploaded I could use a jquery plugin to allow the user to crop the image. Is this correct, is there anything else I would need to do to notify EE and is this the easiest solution ? Im guessing that if I got an upload solution working, after a successful upload I would need to update the exp_members table with the new filename. There are a number of ajax file upload solutions around - has anyone got any of these working succesfuly with EE ? There seem to be a few unanswered posts around the forum regarding the Zurb solution. Solution Being able to intercept the uploading process and modifying the file, we would need to override the private uploadFile method of the AsyncUpload's upload module. I would also like them to be able to crop the images facebook-style and fix the photos to some specified dimensions. Resize images on client-side before uploading them with the RadAsyncUpload control. Im using solspace User for my profiles and I would like my users to be able to update their photos/avatars and see the uploaded image straight away on the profile edit page. Document.getElementById('foto_select').This is a bit of a two part problem Im trying to solve :













Resize image client side before upload javascript