Questions tagged [upload]

Upload refers to the sending of data from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the data being transferred, or the initiation of such a process

Upload refers to the sending of data from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the data being transferred, or the initiation of such a process.

Use if you having trouble to upload data of files with fixed file sizes. But for continuous transmission use tags with stream like or the library specific tags like , , etc.

Important Hint

In web development, there is a common mistake beginners often make during coding forms for uploading files. This mistake is not supplying the enctype attribute in the form tag, or supplying it in a form's element instead of supplying it in the form tag itself. To ensure that the form is going to submit files the form tag should be something like the following:

<form method="post" action="some/server/side" enctype="multipart/form-data">
... The form's elements...
</form> 
14140 questions
55
votes
3 answers

AngularJS: Upload files using $resource (solution)

I'm using AngularJS to interact with a RESTful webservice, using $resource to abstract the various entities exposed. Some of this entities are images, so I need to be able to use the save action of $resource "object" to send both binary data and…
Gian Marco Toso
  • 11,676
  • 5
  • 29
  • 38
55
votes
4 answers

Symfony2 file upload step by step

I am still learning Symfony2 and don't understand how to upload a file. Don't worry, I've already checked the documentation. It's really good, but my problem isn't explained in any tutorial. I am looking for guidance on how to upload a file with…
Tyrael
  • 553
  • 1
  • 6
  • 6
54
votes
5 answers

How to Create the Upload File for Application Loader?

When I use Application Loader, I get to the point where it asks me to "Choose..." the file to be uploaded. If I understand correctly, it supposes to be the appName.app file I see under "Products" on my app bundle (I right click it and select "Show…
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
54
votes
5 answers

How to test file upload in Laravel 5.2

Im trying to test an upload API but it fails every time: Test Code : $JSONResponse = $this->call('POST', '/upload', [], [], [ 'photo' => new UploadedFile(base_path('public/uploads/test') . '/34610974.jpg',…
Ramin Omrani
  • 3,673
  • 8
  • 34
  • 60
54
votes
6 answers

Summernote image upload

I have a problem with editor Summernote. I want to upload images into a catalog on the server. I have some script: