Questions tagged as 'file-upload'

1
answer

Trying to upload JPG via Javascript and Ajax [duplicate]

I've 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 class="blocoCampo"> <span> Escolher nov...
asked by 28.06.2017 / 19:12
1
answer

Uploading model along with uploading files

I have a web API built with ASP.NET WebAPI, I have a model that references a URI of a file (for example representing a photo in a photo gallery, or a product in a catalog) and I need to send the data to the API. / p> As for uploading the file...
asked by 07.02.2015 / 00:21
3
answers

Limit for uploading 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 accept=".pdf" name="arquivo" re...
asked by 30.09.2016 / 14:52
1
answer

Discover image size that was inserted by input file

I am creating a system to organize the images of a website, that is, I will store information such as name, extension, size, height, width, ... and I am having trouble picking up the height and width data The codes are currently: jQuery:...
asked by 08.09.2017 / 16:42
1
answer

PHP - Upload file in different folders

I have to make a PHP script that sends a single upado file to multiple folders (listed in the root of the server dynamically). The problem is that the first upload is done without problems, then I can not send it to the other folders. EXEMPLO:...
asked by 10.06.2016 / 21:17
3
answers

How to fix error in file upload?

I have the following form: @using (Html.BeginForm("importCSV", "Administrador", FormMethod.Post, new { @id = "upldFrm", @enctype = "multipart/form-data" })) { <input id="file" name="file" type="file" /> &l...
asked by 10.06.2015 / 17:01
2
answers

Send file from one server to another

The application is located on an X server. From a file upload I need the file to be sent to a Y server. But I can not find a solution for this. The application is in MVC asp net. To upload the file to the same server I use: [HttpPost]...
asked by 09.06.2014 / 18:31
2
answers

Is there any way to send image by JSON to an api?

I want to send an image (I'll save it to the same bank), but I do not know how to send it together in POST . I'm using AngularJs : <input type="file" ng-model="user.imageProfile"> $scope.register = function (user) {...
asked by 04.11.2016 / 11:58
1
answer

Uploading 2 files via ashx

I have the screen below: Ineedtheusertoselectasongandacover,butI'mnotfindingawaytosendthetwofilesatonceandstillvalidateifMusicandCoverhavebeenselected.UntilthenIfollowedtheexamplebelow,butJSonlytakesthecontentofthe(upFoto)input,howeverIcreate...
asked by 24.11.2015 / 00:46
2
answers

How to check if a file was selected in the input field?

I do a form validation to ensure that the file a user uploaded is the right type. But the upload is optional, so I want to ignore the validation if it did not upload anything and sent the rest of the form. How can I check if it has loaded someth...
asked by 20.11.2017 / 17:59