Most voted "file-upload" questions
Related Tags features/components related to file uploads (regardless of file type, such as sheets, images, text, etc).
Learn more…192 questions
Sort by count of
-
12
votes1
answer1008
viewsProblems with JSF Fileupload
I am able to save the disk image in this JSF project <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
9
votes2
answers312
viewsPHP : Upload File
I’m here with a problem making one upload of an XML file in PHP. I have a form that allows me to select a file: <form id="upload" action='' method='post' enctype="multipart/form-data" >…
-
7
votes1
answer1682
viewsInput type file does not work in webview
I have an HTML page that has a form of upload imaging in Chrome on pc or any browser works but in my app that has a WebView that opens this page then click on Choose file he does nothing. It is…
-
6
votes4
answers5110
viewsHow to upload images using Ckeditor?
I’m building a Knowledge Base system and I’m using Ckeditor to edit the texts, but I wish I could upload images inside the text. I am using PHP with MYSQL and the text part is already working. How…
-
6
votes2
answers618
viewsSending model along with uploading files
I have a web API built with ASP.NET Webapi, I have a model that references a file URI (for example representing a photo in a photo gallery, or a product in a catalog) and I need to send the data to…
-
5
votes1
answer4182
viewsGet File Size in Bytes in Java Script
I am validating the size of the attached file on my page before uploading using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size);…
-
4
votes3
answers1705
viewsFileupload without refresh on the page?
I realized it takes one refresh on the full page to get the file from the server side. I would have some way without refresh to perform this operation? I know it’s possible with Ajax, as it would…
-
4
votes1
answer2415
viewsHow to take the button out of an input file (without JS)
I got the following input file and wanted to know how to remove the button, so that in the box show only the name of the file *It is not necessary JS, I have seen some examples and remember that…
-
4
votes1
answer681
viewsHow to check if a file is an image?
I am working on an application using ASP.NET MVC and Angularjs and need to ensure that the file upload will only be image files, even if someone sends an extension of another type of ". jpg" for…
-
4
votes2
answers315
viewsWrite Fileupload Path inside an ASP.NET Updatepanel
Expensive, The question of my doubt is very simple. How do I save the path of my Fileupload file to some control or Viewstate, with this Fileupload being inside an Updatepanel? I’m actually using…
-
4
votes3
answers327
viewsUpload a file with parameters in Silex with Angular-File-Upload
I am doing a work with Angular (version 1.5.8) and using Silex as Web Service. To send the file to the Web Service I am using Angular-File-Upload (version 1.5.1) and my Angular service is like this:…
angularjs upload angularjs-directives file-upload silexasked 8 years, 4 months ago Vinicius da Silva 131 -
4
votes2
answers4167
viewsUpload files with AJAX
I am unable to upload some files with AJAX. I need to send 3 files with dynamically generated inputs, so I didn’t use the Multiple attribute. Firing the event, I get to xhr.send(files), which does…
-
4
votes1
answer195
viewsTrying to upload JPG via Javascript and Ajax
I created the following form below on a client’s website, so that you can change a user’s photo: <form id="formulario" method="post" enctype="multipart/form-data"> <div…
-
4
votes1
answer1426
viewsFind out which image size was inserted by input file
I am creating a system to organize the images of a site, that is, I will store information such as name, extension, size, height, width, ... and I am having difficulties to get the data of height…
-
4
votes1
answer12477
viewsUpload image with Axios to a Node.JS server
I’m trying to upload an image using the library Axios, but she’s not getting into the back-end. Image input <input type="file" class="custom-file-input" id="file" name="file"> Note: My form…
-
3
votes2
answers2093
viewsSend file from one server to another
The application is on an X server. From a precise upload file the file is sent to a Y server. However, I can’t find any solution for this. The application is in MVC Asp net. To upload the file to…
-
3
votes2
answers2344
viewsIs there any way to send image by JSON to an api?
I want to send an image (I will save it in bank), but I do not know how to send it together on POST. I’m using AngularJs: <input type="file" ng-model="user.imageProfile"> $scope.register =…
-
3
votes3
answers1950
viewsHow to Fix File Upload Error?
I have the following form: @using (Html.BeginForm("importCSV", "Administrador", FormMethod.Post, new { @id = "upldFrm", @enctype = "multipart/form-data" })) { <input id="file" name="file"…
-
3
votes1
answer68
viewsUpload 2 files via ashx
I have the screen below: I need the user to select a song and a cover, but I’m not finding a way to send both files at once and still validate if the Music and Cover was selected. Until then I…
-
3
votes1
answer742
viewsPHP - Upload file to different folders
I have to make a PHP script that sends a single upaged file to several folders (listed in the server root dynamically). The problem is that the first upload is done smoothly, then I can’t send to…
-
3
votes3
answers3825
viewsLimit for sending files
I have a project in Asp Net MVC . NET Framework 4 as follows: View: <div class="file-content"> <label class="custom-file-upload"> <input type="file" id="importar-arquivos" multiple…
-
3
votes2
answers2830
viewsHow to check if a file has been selected in the input field?
I do a form validation to ensure that the file a user uploaded is of the right type. But the upload is optional, so I want to skip the validation if it hasn’t uploaded anything and uploaded the rest…
-
2
votes2
answers4041
viewsImage preview before Upload + Imageresizing.net
In a few minutes looking for a way to show the preview of an image before the upload of the same, I found the magnificent solution: $("##ID DO INPUT FILE##").change(function (event) { var reader =…
-
2
votes2
answers2660
viewsHow to grab a file extension?
I am using JSP and HTML and need to select a file and know its extension. The only way I know how to open a file is with input file but with it I can’t get the extension. How can I get this result?…
-
2
votes2
answers1579
viewsHow to hide href with jQuery while input file is not selected?
I have a form image upload where the user before updating the avatar image or profile cover, views (in this same form) their registered image or a system pattern. Turns out my input type has an…
-
2
votes1
answer566
viewsForm with upload to image
How do I upload images to ASP.Net MVC? I have a registration form where the user has the option to send an image to use in his profile. An example would be useful.
-
2
votes1
answer121
viewsFile per folder limit - Django 1.7
Does Django 1.7 provide any upload control mechanism per folder? I say this because when the number of files in a folder gets too large it tends to get slower. An example would be: Every 800 files…
-
2
votes1
answer914
viewsUpload ajax file Asp.net-mvc
I have the following problem when using file upload. ajax performs "at the same time" both actions. And I would like him to perform the ulpoad action and then the other. Or else another way to…
-
2
votes1
answer282
views404 ASP.NET MVC fails when attached file is large
I’m using the plugin jquery.filer to send files to attach files in my form. I chose this because it was a plugin that managed to manipulate it to send the data of the other inputs along with the…
-
2
votes1
answer1561
viewsUpload only with jQuery.ajax and PHP
I wonder if it is possible to upload a file using only $.ajax({...}) unfulfilled Submit of the form and if so, how? Note: I would like to put this script in the event onchange. Note 2: If possible I…
-
2
votes2
answers72
viewsIs it possible to upload an image and rename it only with Java Script?
Have some way to grab the image file of the request, save it in some directory and change the name of the server using JavaScript? Obs: It can be either way, or use any framework (AngularJS, jQuery)…
-
2
votes1
answer480
viewsFile-Transfer Cordova how to use php
Hello I have the following code onDeviceReady: function () { navigator.camera.getPicture( app.uploadPhoto, function (message) { alert('get picture failed'); }, { quality: 50, destinationType:…
-
2
votes1
answer777
viewsOperation of Request.Files;
I have an Asp . Net MVC project, with a form on View which sends files to the Controller. In control I recover the files as follows: var myFiles = Request.Files; Not saving the file, just reading…
-
2
votes0
answers126
viewsUploading Multiple Files from a Mobile Phone
Hello, I have a web app where I need to upload multiple photos at the same time, On the pc goes smoothly but on the mobile I can not select multiple photos. Can someone help me ?
-
2
votes1
answer151
viewsUpload files working with PHP sockets
A little while ago, I decided to explore and study some sockets to be worked in PHP. So I took a good tutorial on the internet and decided to create a very simple chat where I connect the server and…
-
2
votes2
answers557
viewsCan I upload to a subfolder using Filefield?
When I define one FileField (or ImageField), I need to specify a upload_to: campo1 = models.FileField(upload_to="uploads") campo2 = models.ImageField(upload_to="img/%Y/%m/%d") In the first case, all…
-
2
votes0
answers695
viewsHow to make a download available on a web page having the files on my computer, outside of my web project?
I need to make a web application that the user uploads PDF files and can download them later. The upload part is done, save the files to a folder on my PC /home/william/web. To save the files on my…
-
2
votes1
answer1810
viewsHow to capture parameter in form with enctype="Multipart/form-data"?
I’m having trouble capturing the parameters of an HTML form with enctype="Multipart/form-data", I can upload an image through the form, but I can’t capture text typed in the form. The form looks…
-
2
votes0
answers603
viewsLoad progress bar as import C#
How to make progress bar load as excel file import is in progress ? My code so far: ASPX: <asp:FileUpload ID="FileUpload" runat="server" Style="margin-top: 4px" /><br /> <div…
-
2
votes1
answer531
viewsHow to save Image to a specific folder?
I have the following code: protected void btnSalvarDestaque_Click(object sender, EventArgs e) { if (fuFotos.HasFile) { string strname = fuFotos.FileName;…
-
2
votes0
answers385
viewsmove_uploaded_file does not move files
I have a form (in php, I wanted to ask if it works without problem? ) to insert images (the path of them) and when I enter the notification appears that were inserted in the database but the image…
-
2
votes2
answers1510
viewsfile_get_contents(): Content-type not specified assuming application/x-www-form-urlencoded
In this code I am creating to upload profile images to Imgur if (isset($_POST['uploadprofileimg'])) { $image = base64_encode(file_get_contents($_FILES['profileimg']['tmp_name'])); $options =…
-
2
votes2
answers804
viewsUpload PDF by ajax
I have a form with several inputs text and 1 input file (where I send a PDF file). If I send by ajax it does not send the "FILE", I tested send without ajax, only by Ubmit, and it worked. The…
-
2
votes1
answer1061
viewsChange src attribute of an image when uploading via file type input
Eae you guys, blz? I need a code that when uploading an image via file type input it is displayed in a type of "preview". What I got so far is this: HTML: <div class="card"> <img…
-
2
votes2
answers3896
viewsCancel sending jQuery form
Good afternoon, I have a form and I want that when the button submit be clicked it does not reload the page for the post submission put the return false; in function submit of jQuery but it did not…
-
2
votes1
answer169
viewsError in PHP image upload
Blz Galera I am doing an image upload test and is showing error: Notice: Undefined index: foto in C: xampp htdocs cadastro.php on line 2 Notice: Undefined index: foto in C: xampp htdocs cadastro.php…
file-uploadasked 6 years, 10 months ago Márcio Fernandes 51 -
2
votes1
answer259
viewsHow to upload an image to Nodejs?
Good afternoon, I want to make a POST Request of the client in JAVASCRIPT with DATA Send (file . jpg) in date URL for the NODEJS server. [Client] - Javascript finalImg.onload = function(event){ var…
-
2
votes1
answer119
viewsNews system with image upload in PHP - when there is no image!
I’m setting up a news system and in the Adm panel for registration today, the code works as follows: Register the title/text/image/ and make it active/inactive in the situation: In this case the…
-
2
votes1
answer224
viewsTimeout to Upload FTP file in PHP
Friends, I am trying to develop the upload of files to FTP by PHP. When running it it successfully connects to the FTP server. However, the page keeps loading until a timeout and does not finish…
-
2
votes3
answers77
viewsPass two variables together with the form through the ajax
I need to pass two more variables through ajax, I tried to do it this way: JS: var usuario_cod = document.getElementById("usuario_cod"); var line_cod = document.getElementById("line_cod"); ...…