Questions tagged [input-type-file]

HTML input control for uploading files ``

A form in an HTML document (Web page) can contain an input element with type="file". This may let the user include one or more files into the form submission. The form is often processed so that such files are stored onto the disk of the Web server; this is why file input (or file submission) is often called “file upload.”

Syntax: <input type="file" />
172 questions
2
votes
1 answer

HTML file input naming when given a URL

We have a pretty standard file selector on our web page, defined like this: This works fine for selecting a local file, but we found that if the user pastes…
Matt McMinn
  • 14,905
  • 14
  • 54
  • 68
2
votes
0 answers

Select files on Android web with input type=file: excel files incorrectly available to select, and return PDF mime type

I want to limit file uploads on my mobile web app to image and PDF file types. However, when I open the file picker in Chrome on Android, I can select excel files, which should not be available to select based on what I've specified in the accept…
2
votes
1 answer

how to upload multiple image file in one transaction using php and mysqli?

I'm trying to insert multiple images in database per transaction, but each image has its own input types. But when I submit the form, I get the error that my $file_upload = $_FILES['file_upload'.$i]; from my post.php is an "undefined index" . Are …
Louie
  • 219
  • 3
  • 12
2
votes
1 answer

jQuery mobile stops file uploads by default?

When using jQuery mobile as a script in a web page for styling purpose, ( The doesn't work. Any one know why ?
Iresha Rubasinghe
  • 803
  • 1
  • 10
  • 27
2
votes
1 answer

how to send dynamic value in input type file?

i have created one edit form that i am editing my room number and room description and room image etc . based on the category id. first edit form will fetch the data from database . example code : if (isset($_GET['id'])) { …
Nayana
  • 757
  • 8
  • 22
2
votes
1 answer

Set Input Type = "File" HTML5 parent directory

I want to upload a file onto a server so I am using HTML5 input type file element. For example Now for the user, he/she selects a file from "D:\User\TestLand\abc.Sys" location So what I…
Rahul
  • 978
  • 1
  • 18
  • 45
2
votes
1 answer

Load a file using a dat.GUI button?

I already know how to create buttons using dat.GUI (passing in functions as described in this question: Is it possible to create a button using dat.gui). I want to make a button that triggers a load file event like you would do with
Max Strater
  • 539
  • 6
  • 17
2
votes
1 answer

Correcting formatting of in Chrome

The markup is a simple Please help me vertically center the "No file chosen" text. I have tried all that I could, vertical-align etc. See screenshot below: Btw, Firefox seems to render the…
Kaya Toast
  • 4,631
  • 6
  • 30
  • 52
2
votes
0 answers

Trigger Close File Browse window pop-up?

Is it possible to close the window that is opened by the click of an input file type using jquery/javascript ? I have : $("input[name=profileImage]").click(function(e){ if(e.handled!=true){ e.handled= true; }else{ //Trigger…
Roy M J
  • 6,711
  • 6
  • 43
  • 76
2
votes
2 answers

Obtain Contents In Ajax

I want to validate a file being uploaded via Ajax before the user can submit it. I make sure it is a .txt or .csv in javascript, then I want to call my controller to verify it matches our CSV standard. I have :
Jonesopolis
  • 23,589
  • 10
  • 63
  • 106
2
votes
2 answers

Prevent html input type file from showing open dialog

To make a long story short, I need to be able to prevent the default action from a input type="file". In other words I do not want to display the system's open dialog box when the user clicks on the "Browse" or "Choose File". I already have the…
vbguyny
  • 1,068
  • 10
  • 23
1
vote
2 answers

Android xml phone number in keyboard restriction

Hi in my project i have a edit text box, where i want the user to enter his phone number, I need it in a format like +0000000000 no need to allow - or any other symbols. I need to restrict the user while entering in keyboard. I have implemented the…
1
vote
1 answer

Interop between html input type=file and java applet

I'm currently developing a web app where I make use of digital signing of forms using the portuguese citizen card and java applets. Everything have been going smoothly with the regular forms until I reached a problem with inputs of type file. The…
RicardoSBA
  • 735
  • 1
  • 6
  • 18
1
vote
1 answer

input type file path is fake - JavaScript

the code below must out put the path of the file BUT the out put is "C:\fakepath(file name)"
1
vote
0 answers

How to reload file in (input type="file" ) without select file again Angular

I have a problem when updating chrome to the latest version. I have a file with name test.csv, button will call readAsText() when click. When i select test.csv and click button for the first time, everything is normal. After that, i edit test.csv…
A8 PK
  • 11
  • 2
1 2
3
11 12