Questions tagged as 'file-upload'

2
answers

Cancel the submission of the jQuery form

Good afternoon, I have a form and I want it when the submit button is clicked it does not reload the page for sending the post I placed return false; in function submit of jQuery but did not roll .. . $("#form-anunc...
asked by 16.11.2017 / 17:14
1
answer

How to change the folder in the jQuery File Upload plugin?

How to change the folder where the jQuery File Upload plugin looks for the images to be displayed? Currently the folder is the "files" but I did not find the location where it is indicating the folder being searched for.     
asked by 29.04.2014 / 19:45
2
answers

How do I get a file extension?

I'm using JSP and HTML and I need to select a file and know its extension. The only way I can open a file is with input file but with it I can not get the extension. How can I get this result?     
asked by 23.04.2014 / 02:55
1
answer

404 Failure with ASP.NET MVC when attached file is large

I'm using the jquery.filer plugin to send files to attach files to my form. I chose this because it was a plugin that I was able to manipulate it to send the data of the other inputs along with the files and to avoid temporary folders....
asked by 23.10.2015 / 16:26
1
answer

Uploading files working with sockets in PHP

A little while ago, I decided to explore and study some sockets to be worked on in PHP. So I got a good tutorial on the internet and I decided to create a very simple chat where I connect the server and two machines access the address to do the...
asked by 04.05.2018 / 13:24
1
answer

Change src attribute of an image when uploading via file type input

Hey guys, blz? I need a code that when uploading an image via input file type it is displayed in a preview type. What I have so far is this: HTML: <div class="card"> <img class="card-img-top" src="<?=$foto?>" id="fo...
asked by 03.11.2017 / 20:21
1
answer

Operation of Request.Files;

I have an Asp .Net MVC project, with a form in View that sends files to the Controller . In control I retrieve the files as follows: var myFiles = Request.Files; I do not save the file, I just read the contents. The question is: Wh...
asked by 10.07.2017 / 14:07
2
answers

Can you upload to a subfolder using FileField?

When I set a FileField (or ImageField ), I have 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 files go to the "uploads"...
asked by 24.07.2015 / 20:51
1
answer

Upload only with jQuery.ajax and PHP

I would like to know if you can upload a file using only $.ajax({...}) without submitting submit of the form and if, like? Note: I would like to put this script in the onchange event. Obs2 .: If possible I do not want to send...
asked by 03.12.2014 / 21:55
2
answers

How to hide href with jQuery while input file is not selected?

I have a% of image upload% where the user before doing an update on the avatar image or profile cover, he visualizes (in the same form) his registered image or a system default. It turns out that my form has an "onchange" and my inp...
asked by 24.04.2014 / 02:38