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
0 answers

XMLHttpRequest Image Uploader with EXIF orientation Preview

I need a solution for previewing images with the right EXIF orientation before uploading with XMLHttpRequest or ajax. I've been able to preview the image and correct the orientation on an iPhone OR submit it via XMLHttpRequest, but not both at the…
Vini Goulart
  • 91
  • 1
  • 5
3
votes
1 answer

How to get file extension in node js using formidable?

My Code: Js File: var formidable = require('formidable'); var fs = require('fs'); var ex = require('express'); var fse = require('fs-extra'); var app = ex(); app.set('view engine', 'ejs'); app.get('/form', function(req, res) { …
Zaheen
  • 821
  • 9
  • 11
3
votes
0 answers

Amazon S3 Browser-Based Uploads & 405 Method Not Allowed error

I am trying to create a way for anyone (ie public) to upload a file onto an Amazon S3 bucket so read a lot of documentation but hitting a roadblock because of my technical immaturity in this space. Here is what I did: (1) Create a S3 bucket and set…
3
votes
2 answers

Uploadify / uploadifive - clearing queue on the submitting of form

I am using uploadifive plugin for multi-file uploading. It works great but now i have find a bug in my implementation that queue is not clearing after creating a record. If record is created then uploadifive should show empty queue for new record…
Star
  • 3,222
  • 5
  • 32
  • 48
3
votes
5 answers

Codeigniter image upload will only upload to one dir

function upload($path){ $config['overwrite'] = TRUE; $config['allowed_types'] = 'jpg|jpeg|gif|png'; $config['max_size'] = 2000; if($path =='profile'){ $config['upload_path'] = '../assets/uploads/avatars'; $config['file_name'] =…
Kevin Brown
  • 12,602
  • 34
  • 95
  • 155
3
votes
4 answers

upload several files at once

i'm building a website with very simple cms. I built a form already with an input type="file" already to upload pictures, but the client wants to upload several files at once. So i've looking for and I found the Uploadify, but also found some bugs…
Tiago Castro
  • 835
  • 2
  • 10
  • 23
3
votes
0 answers

Uploading an image using the Python Etsy API

I am trying to upload an image to Etsy through the API. However, the example on their website is given in PHP which I don't know how to code. I only know how to work with Python. On their website it says: Image uploads can be performed using a POST…
ben olsen
  • 663
  • 1
  • 14
  • 27
3
votes
1 answer

Uploading a JSON to google cloud storage via python

I am trying to upload a JSON I have to google cloud storage. I can do it manually so I know it works but now want to write a python script that will do it automatically. import boto import gcs_oauth2_boto_plugin import os import shutil import…
W. Stephens
  • 729
  • 5
  • 17
  • 31
3
votes
0 answers

Python: Chunked uploads via requests in one connection?

I'm expecting problems with using requests, i try to send huge file (1GB) via requests, but script that i'm using seems to sending data is trying to upload whole file at once. I tryed to implement 'chunks' but implementing it causes that script…
Marek Grzyb
  • 177
  • 13
3
votes
2 answers

uploading a file and then copying it to two differnt directories?

i know this is a very basic question and i know i have done it before its just htta i cant seem to track the code or get the answer on the web... let me explain... i am uploading a image i want the original image in one dir and i want to create a…
andy
  • 175
  • 3
  • 13
3
votes
3 answers

scriptData not being passed when there are multiple instances of uploadify

I've got two instances of uploadify in my form. You'll find the definitions below. And two buttons that trigger the uploads. The image button is the only one relevant to the question: $( "#btnimageupload" ).button().click(function() { …
HyderA
  • 20,651
  • 42
  • 112
  • 180
3
votes
2 answers

upload array of images in multipart retrofit2

I need to upload an array of images on server using multi-part.and I Also want to give key to that array, otherwise server don't recognize the array. I have tried the solutions below, but these do not work: Solution1 : MultipartBody.Part[] array =…
Vikas Sharma
  • 107
  • 1
  • 8
3
votes
1 answer

How can you upload files as a []byte in go?

I would like to use golang post request, upload pictures, but I do not want to pass filepath, just want to pass [] byte The following article are not what I need because they are used os.Open golang POST data using the Content-Type…
xiaoxinmiao
  • 317
  • 1
  • 3
  • 10
3
votes
1 answer

Retrieving progress of Direct Upload using youtube gdata API

I'm following along with the documentation about using the gData Youtube API for doing direct uploads with PHP. I can successfully upload videos, so thats all well and good. The part I'm having trouble figuring out, if its even possible is getting…
raytiley
  • 684
  • 2
  • 7
  • 17
3
votes
1 answer

Upload progress (with or w/o XMLHttpRequest 2) with Javascript

XMLHttpRequest 2 has a new thing. It can upload files. I got that working (it's super easy). Now I'm wondering if there's a way to get the upload progress of that file. I wouldn't be interested in this normally, but in Google Chrome (8) I saw that…
Rudie
  • 52,220
  • 42
  • 131
  • 173