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
88
votes
5 answers

Jquery and HTML FormData returns "Uncaught TypeError: Illegal invocation"

I'm using this script to upload my image files: http://jsfiddle.net/eHmSr/ $('.uploader input:file').on('change', function() { $this = $(this); $('.alert').remove(); $.each($this[0].files, function(key, file) { $('.files').append('
  • '…
  • Caio Tarifa
    • 5,973
    • 11
    • 46
    • 73
    84
    votes
    13 answers

    How to limit the number of dropzone.js files uploaded?

    Depending on the use case, how do I constrain the number of files that dropzone.js will allow? For example, I might need to only allow 1, 2, or 4 files uploaded. It's not uploadMultiple. Unfortunately, uploadMultiple only applies to the number of…
    pydanny
    • 7,954
    • 6
    • 34
    • 42
    83
    votes
    10 answers

    Upload Progress Bar in PHP

    Does anyone know how to get a progress bar for an upload in php? I am trying writing code for a photo album uploader. I would like a progress bar to display while the photos are uploading. I am fairly new to php so I dont know everything about it.
    Josh Curren
    • 10,171
    • 17
    • 62
    • 73
    81
    votes
    20 answers

    How to upload file ( picture ) with selenium, python

    How to upload a picture on a web application with the selenium testing tool? I am using python. I tried many things, but nothing worked.
    Filip
    • 989
    • 1
    • 10
    • 8
    79
    votes
    6 answers

    How to find when a web page was last updated

    Is there a way to find out how much time has passed since a web page was changed? For example, I have a page hosted at: www.mywebsitenotupdated.com Is there a way to find out when this HTML page was uploaded to the server? I have no access to…
    guisantogui
    • 4,017
    • 9
    • 49
    • 93
    70
    votes
    5 answers

    How to determine if user selected a file for file upload?

    If I have a tag, and a submit button, how do I determine, in IE6 (and above) if a file has been selected by the user. In FF, I just do: var selected = document.getElementById("uploadBox").files.length >…
    slolife
    • 19,520
    • 20
    • 78
    • 121
    69
    votes
    12 answers

    PHP image upload security check list

    I am programming a script to upload images to my application. Are the following security steps enough to make the application safe from the script side? Disable PHP from running inside the upload folder using .httaccess. Do not allow upload if…
    usef_ksa
    • 1,669
    • 3
    • 23
    • 40
    67
    votes
    5 answers

    How to upload file using Selenium WebDriver in Java

    Can anyone let me know how to upload a file using Selenium by Java code? When I click on button in the application it gets open in the new window what I can use to select upload file. The browse button developed by Silverlight (C#).
    Mahesh
    • 671
    • 1
    • 6
    • 4
    65
    votes
    4 answers

    PUT vs. POST for Uploading Files - RESTful API to be Built Using Zend Framework

    I'm building a RESTful API using Zend Framework via the Zend_Rest_Route. For uploading of files, should I use PUT or POST to handle the process? I'm trying to be as consistent as possible with the definition of the REST verbs. Please refer to: PUT…
    woran
    • 1,317
    • 2
    • 16
    • 22
    65
    votes
    7 answers

    Uploading Laravel Project onto Web Server

    I am trying to upload my Laravel project onto my web server, but my past two attempts have been unsuccessful. I believe I am not uploading the files to the right location. This is my web server's structure -> Am I correct to say that I need to…
    Sainath Krishnan
    • 2,089
    • 7
    • 28
    • 43
    62
    votes
    4 answers

    Full Secure Image Upload Script

    I don't know if this going to happen, but I will try it. For past hour I did research on image upload safety. I learned that there a lot of functions to test the upload. In my project, I need to be safe with images uploaded. There also may be a…
    Simon
    • 1,314
    • 4
    • 14
    • 26
    62
    votes
    10 answers

    upload file to my dropbox from python script

    I want to upload a file from my python script to my dropbox account automatically. I can't find anyway to do this with just a user/pass. Everything I see in the Dropbox SDK is related to an app having user interaction. I just want to do something…
    Christina
    • 1,389
    • 1
    • 11
    • 12
    60
    votes
    8 answers

    What are the proper permissions for an upload folder with PHP/Apache?

    Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups. I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the…
    Raleigh Buckner
    • 8,343
    • 2
    • 31
    • 38
    59
    votes
    2 answers

    Streaming large file uploads to ASP.NET MVC

    For an application I'm working on, I need to allow the user to upload very large files--i.e., potentially many gigabytes--via our website. Unfortunately, ASP.NET MVC appears to load the entire request into RAM before beginning to service it--not…
    Benjamin Pollack
    • 27,594
    • 16
    • 81
    • 105
    58
    votes
    6 answers

    PHP post_max_size overrides upload_max_filesize

    In my site host, I have seen (via phpinfo) that post_max_size = 8Mb upload_max_filesize = 16Mb This led me to think that I should be able to upload as file as big as 16Mb. However, when I do this through a post method (as normal), post_max_size…
    Simon
    • 2,208
    • 4
    • 32
    • 47