I am wanting to allow my user to upload an image, using a form. In the same form I want to display the image that has been uploaded. Is this is possible to do without actually submitting all the form?
Thanks
You could use any number of flash or AJAX image uploaders to accomplish this.
Related
I have a website built with Laravel and I need that the customer fills a editable PDF and send it to an specific address.
Instead of asking them to download it, fill it in local and then send it, I have created a new page in my site where I placed the editable PDF using an iframe.
Now, I would like to add a button that once the customer fills the PDF, it sends it automatically.
Does anybody know how to achieved this or is it not possible?
I am trying to do it using ajax, calling a method in my controller that will send the email using a template and with an attachment, but I don't know how to pass the PDF filled to it from the view(iframe).
Thank you in advance
I'm having a nightmare with this. I've currently got an application which allows a user to view information by grabbing data from an API. I want to programatically save the view the user sees as a png image.
I've tried using Snappy etc but the pdf output isn't great and I want to save the view as a png. I tried using phantomjs but the problem is that the view needs the user to be logged in and so I just get the 'you need to be logged in screen'
Does anyone have advice on how to make a method in my controller to save an authenticated user's view as a png on load?
Thanks!
Laravel snappy has the option to create images in different formats in addition to pdf.
It require some effort to proper configure but you can use the same css you use in the original view.
My advice is to continue to try with laravel snappy
After looking around at some stuff, I've found that you can submit a form to a frame using the "target" attribute.
That works for me, except, it submits the WHOLE form.
I have a form. It's all submitted to a PHP file with AJAX POST.
I want to include an image upload in this form.
Is there any way to directly upload the image THROUGH AJAX to the same PHP file, or do I have to put a form within a form (because I think that that's rather sloppy).
Thanks a bunch!
NO jQuery. Straightforward DOM, please.
How to upload image on page using ajax in codeigniter? On form image needs to be uploaded then
user should fill further information. I try ajax but unable to figure out simplest way
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-upload-files-with-codeigniter-and-ajax/
This is how I did it for the first time, easier than it might look and should work without too much problems.
I have a problem with images in my web app. let say I have a form where there are some text fields, dropdowns, upload ajax control for multiple image upload and button Save.
I know how to upload images and posting a form and saving everything to database but the problem is that I want to achieve the following user experience:
User can upload multiple images and browser after successful upload shows thumbnail (this I know how to do it)...the problem here is that I do not want to save images to db before button save is pressed. Is there any convinient how to save temporary images...I have tried temp table which after button is pressed, copies all images to image table but here is browser refresh problem that looses all the data and images stay in a temp table. Can you use a session for storing temporary images or any other way (I think session is not particulary good idea for such things.)
One easy way to achieve that is to use the HTML5 File API and display a thumbnail once the user selects a file to upload. You don't even need to waste bandwidth as everything happens on the client. Once the user submits the form, then the image will be uploaded to the server.
Another possibility is to use one of the gazillions of available AJAX upload controls such as Uploadify, Valums Ajax Upload, Uploadify, the jQuery form plugin, ... which will allow you to upload the file to the server using an AJAX request so that you can resize it there and return the resized image to the client that you could display the thumbnail on the client.