Linked Questions

126 votes
5 answers
228k views

Show an image preview before upload

In my HTML form I have input filed with type file for example : <input type="file" multiple> Then I'm selecting multiple files by clicking that input button. Now I want to show preview of ...
Hardik Sondagar's user avatar
11 votes
8 answers
62k views

How to upload preview image before upload through JavaScript

I want to preview an image before uploading it to the server. I have written a little bit code for it, but it is only being previewed in Internet Explorer, not in other browsers like Safari, Chrome, ...
Zain's user avatar
  • 5,501
7 votes
1 answer
12k views

How to upload image to firebase cloud storage from input field?

I have an input field, where users can choose what image they want to upload, and then I need to send to cloud storage. The problem is, I don't know how to get the file they selected. I saw a lot ...
aravk33's user avatar
  • 489
4 votes
3 answers
5k views

rendering image for preview from selected file in file input tag

Now I have a form field: <input id="my_img_field" type="file"/> After I select the image in the browser, I want to render the selected image file on the target img tag: <img id="...
Alfred Huang's user avatar
  • 18.1k
3 votes
5 answers
7k views

Calling Barcode scanner from non non native jquery webapp iOS

I have a webapp which has a mobile version to be accessed by people on safari browser. Is there a way to call any installed barcode scanner from the code on user action (button click), so that the ...
Ajo Koshy's user avatar
  • 1,215
3 votes
2 answers
3k views

HTML file input accept images with certain dimension

I know this may require some javascript but how can I tell the input inside my form to reject images with size different than 64 x 64 without pressing the submit button. <div class="form-group">...
Betun Herrera Alanis's user avatar
2 votes
1 answer
4k views

How to get contents of a file selected with browse button?

You create a browse button and let the user navigate the directory until he chooses a file. And the whole path and file name appear in the text element of the Browse button complex. So, how can I ...
DKean's user avatar
  • 2,087
0 votes
2 answers
2k views

How do you upload an image using input and then render a view of it with img tags?

I need to be able to upload an image and return the image to the screen for viewing not with an output tag but with an img tag that has a src element. One of the things that's throwing me off in the ...
rashadb's user avatar
  • 2,545
1 vote
1 answer
2k views

How to access an image without uploading and display it in an IMG tag [duplicate]

I would like to read the URL of an image selected in an <input type="file">tag and then display the corresponding image without uploading the file to the server first. <input type='flie'id='...
P P's user avatar
  • 11
0 votes
1 answer
818 views

Client side resizing image then back to form for submission (no Ajax)

I have been pulling my hair off trying to find a way to select an image (input type=file), run a method (on change=function blah(this)) to resize the image, then put the file back to the form (I know ...
WPalombini's user avatar
0 votes
2 answers
592 views

How do I use input tag result to img.src

So I want to use input result as image source how can I do that? I try to use input id as img.src but that clearly does not work, I also try to use img tag and use the put input result as img tag src,...
Misael Indra Wijaya's user avatar
0 votes
1 answer
579 views

How to access uploaded image using vue.js

Here I have written a code for multi upload images. And the functionality i dont know where I am going wrong. like while i am uploading an image. So in console terminal I am seeing only image name not ...
Inayat Kazi's user avatar
0 votes
1 answer
292 views

View an Image Using Django CreateView Before Submitting

I have a Django CreateView that works as expected. I allow the user to attach a photo and then after they click Submit, the view captures the image as expected. However, I am trying to figure out ...
Steve Smith's user avatar
  • 1,065
-2 votes
3 answers
351 views

I have an image element which displays the user's current profile image. Can I change the src of that image to the image inside the file input?

As you can see in the code below, I have an image element which displays the user's current profile image. I am wondering would it be possible to change the src='' of the image element to the image ...
Onyx's user avatar
  • 5,542
1 vote
1 answer
197 views

Accessing HTML <input> from JS file not working with getElementById

I am currently trying to make it so that my JavaScript file will run an <input> button that is hidden when a user places a marker on a leaflet map (or begins the process of placing it). I ...
Buzzkillionair's user avatar

15 30 50 per page