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
3
votes
1 answer

How can I create or upload plain text file on blogger like these two URLs?

How can I create or upload plain text file on blogger like these two URLs? crimlaw.blogspot.com/Resume.txt and crimlaw.blogspot.com/smith appellee.txt
suadmaji
  • 31
  • 4
3
votes
1 answer

Batch file to upload to S3

I needed to develop a batch file, which would send multiple small text files (4KB – 100KB) to a folder in an S3 bucket. Inspired by the bash script from http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash, I developed the batch script listed…
3
votes
1 answer

How can I solve "Type error: Argument 2 passed to ... must be an instance of Symfony\Component\HttpFoundation\File\UploadedFile"?

My controller is like this : public function store(CreateProductRequest $request) { ... $result = $this->product_service->createProduct($param,$photo); ... } My service is like this : public function createProduct($param, UploadedFile…
samuel toh
  • 6,836
  • 21
  • 71
  • 108
3
votes
1 answer

Upload files from a list via ftp in bash

I have several files named as this: TEST_YYYYMMDD.txt I need to upload them via ftp, so to get the list of files I run: files=($(ls | grep -i -E 'TEST_[0-9]{8}.txt')) Now that I got the file list, how can I put them via ftp? function upload()…
3
votes
4 answers

Symfony Twig - Image not showing

Little bit confused here. I have looked at a few threads and they are not solving it. 1) 2) Edit: 2)…
user7714918
3
votes
1 answer

Upload with php in Linux, the tmp_name is empty

I am trying to upload a video using PHP 6.0, Ubuntu 14.04.5 LTS 32 bit, but I can not upload. Tmp_name is empty. All possible problems have been resolved. In php.ini, I configured correctly: Php_value upload_max_filesize Php_value post_max_size In…
PHP Developer
  • 209
  • 1
  • 3
  • 9
3
votes
0 answers

Django model field to upload file from one app but save with another

We are developing an intranet with Django which has to have a consistent and centralized file managmenet. We implemented a filemanager app which should handle all the uploads and downloads, do mimetype checks, permission checks etc. The upload ist…
Max
  • 43
  • 6
3
votes
1 answer

Html 5 Input accept Video Capture or Video Upload

Using HTML 5 it is now possible to use video capture on an input like so: The OS of the mobile device drops into the recorder immediately and allows video capture. The problem is, on most…
Chad Fisher
  • 353
  • 4
  • 16
3
votes
2 answers

How upload image with volley android to MVC api post method?

How upload image with volley android to MVC api post method.I have tried this : StringRequest stringRequest = new StringRequest(Request.Method.POST, UPLOAD_URL, new Response.Listener() { @Override …
VahidHoseini
  • 495
  • 2
  • 10
  • 28
3
votes
3 answers

LARAVEL - Displaying images from the storage folder

I'm new to Laravel and was wondering if someone can help me out with a simple image upload. I have a form that allows a user to create a profile and upload and avatar for their profile during the process. This all works perfectly. Here is the code…
cheesycoder
  • 93
  • 2
  • 2
  • 11
3
votes
1 answer

Extracting user uploaded archives without exposing to ZipBombs?

My question is simple: how do I make sure (or prevent) a user from uploading an archive that upon extraction fills the entire disc space (a so-called ZipBomb)? I am using PHP.
Tower
  • 98,741
  • 129
  • 357
  • 507
3
votes
1 answer

Upload different files with identical filenames using boto3 and Django (and S3)

I am trying to create a Django server that stores media files on S3 where users can upload their own files that might all have the same filename but be different files. I have set up S3 and gotten it working via explicit python commands like import…
John Amos
  • 75
  • 1
  • 5
3
votes
1 answer

Django upload form, additional field causing error

There is an issue I'm facing. I need to upload an excel of students containing their related data. I also need to have, as an user-input, the batch of the student. Following are my codes: Views.py def import_student(request): …
Sayantan
  • 315
  • 5
  • 20
3
votes
1 answer

How can I replace/override an uploaded file?

I want to be able to upload a file and on each upload to override/replace the existing file with the newest version. from django.core.files.storage import FileSystemStorage fs = FileSystemStorage(location='C:/temp', base_url='/attachments') …
Seitaridis
  • 4,459
  • 9
  • 53
  • 85
3
votes
1 answer

XMLHttpRequest wrong progress

I have a problem with the upload of a form using javascript and monitoring it's progress. The problem is that the XMLHttpRequest progress event is raised with a strange behavior. It reaches too fast 100% when the real upload is not finished,…
Bikappa
  • 86
  • 6
1 2 3
99
100