file-upload

What's the best way to create a single-file upload form using PHP?

I've found a few samples online but I'd like to get feedback from people who use PHP daily as to potential security or performance considerations and their solutions. Note that I am only interested in uploading a single file at a time. Ideally no browser plugin would be required (Flash/Java), although it would be interesting to know th...

How do I configure IIS to handle really large file uploads?

Platform: IIS 6, ASP.Net 2.0 (.Net 3.5), Server 2003. I'm building an application that accepts files from a user, processes them, and returns a result. The file is uploaded using HTTP POST to an ASP.Net web form. The application is expecting some large files (hundreds of MB). I'm using SWFUpload to accomplish the upload with a nice pro...

Grails File Upload Problems

I'm trying to emulate the file upload code from the grails website, and I'm running into some problems. I'm using the same code as found here. Here is my code: <g:form action="upload" method="post" enctype="multipart/form-data"> <input type="file" name="myFile" /> <input type="submit" value="Upload" /> </g:form> and def uploa...

What is the best multiple file JavaScript / Flash file uploader?

Specifically, I'm looking for a client-side, JavaScript and / or Flash based multiple file uploader. The closest thing I've found is FancyUpload. Anyone have experience with it? If not, what else is out there? ...

Preventing browser timeout on large file uploads

I have a nice little file upload control I wrote for ASP.NET webforms that utilizes an IFrame and ASP.NET AJAX. However, on large uploads, the browser times out before it can finish posting the form. Is there a way I can increase this? I'm not really interesting in alternative solutions, so don't suggest changing the entire thing out ...

How do I stress test a web form file upload?

I need to test a web form that takes a file upload. The filesize in each upload will be about 10 MB. I want to test if the server can handle over 100 simultaneous uploads, and still remain responsive for the rest of the site. Repeated form submissions from our office will be limited by our local DSL line. The server is offsite with high...

How to check the content of an uploaded file without relying on its extension?

How do you go about verifying the type of an uploaded file reliably without using the extension? I'm guessing that you have to examine the header / read some of the bytes, but I really have no idea how to go about it. Im using c# and asp.net. Thanks for any advice. ...

How can I enable set the timeout on file uploads in SWF to greater than 3 min?

I'm using SWFUpload to handle file uploads and have run into a problem where any file upload >= 3 min will time out. As far as I can tell, Apache and PHP are configured properly to handle large files. Are there any settings with Flash that might affect this? Does Flash have some sort of timeout value I could change? ...

Can you recommend alternative FileUpload control for asp.net-mvc?

Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I wanted to know if anyone had experience with that or could suggest a better one? Some criteria to be measured by validation peformance multiple files localisation (browse is difficult) security ...

Filter Extensions in HTML form upload

I have a simple HTML upload form, and I want to specify a default extension ("*.drp" for example). I've read that the way to do this is through the ACCEPT attribute of the input tag, but I don't know how exactly. <form enctype="multipart/form-data" action="uploader.php" method="POST"> Upload DRP File: <input name="Upload Saved Replay" t...

What is the best way to upload a folder to a website?

I need an easy way to allow users to upload multiple files at once (ie I need to allow a user to upload a folder). I do not wish to put the burden of zipping on the user. I would prefer to avoid Flash or variants if possible. I'm looking for a straight javascript / HTML solution if it is possible. Please note, this rules out the an...

What is the most secure method for uploading a file?

The company I work for has recently been hit with many header injection and file upload exploits on the sites we host and while we have fixed the problem with respect to header injection attacks, we have yet to get the upload exploits under control. I'm trying to set up a plug-and-play-type series of upload scripts to use in-house that ...

ASP.NET Image uploading from URL

I have an aspx page,where the user will enter a valid image url(ex : http://stackoverflow.com/Content/Img/stackoverflow-logo-250.png). I need the program to upload this image to the Server. How can i do this ? ...

Get Data From An Uploaded Excel File Without Saving to File System

I have a requirement to allow a user of this ASP.NET web application to upload a specifically formatted Excel spreadsheet, fill arrays with data from the spreadsheet, and bind the arrays to a Oracle stored procedure for validation and insertion into the database. I must be able to read the data from the Excel spreadsheet without being a...

C# Uploading files to file server

Hello All, Currently I have an application that receives an uploaded file from my web application. I now need to transfer that file to a file server which happens to be located on the same network (however this might not always be the case). I was attempting to use the webclient class in C# .NET. string filePath = "C:\\test\\564....

Retrieving the full path (server-side) of a file uploaded using Firefox?

When I am using a form containing <input id="myFile" type="file" runat="server" /> to upload a file, my server-side code only sees the filename without the full path when using Firefox, while it works just fine in IE. Is it possible to retrieve the full file path server-side in this case? ...

Multi file upload with PHP/Javascript and no flash

I'm trying to make a webpage that allows the uploading of multiple files at the same times. I will limit the file extensions to the most common images like JPG, JPEG, PNG and GIF. I've done some research on this and everywhere I look it's flash this and flash that. I don't want to use flash really. Especially with Flash 10, which disab...

Upload large files in .NET

I've done a good bit of research to find an upload component for .NET that I can use to upload large files, has a progress bar, and can resume the upload of large files. I've come across some components like AjaxUploader, SlickUpload, and PowUpload, to name a few. Each of these options cost money and only PowUpload does the resumable u...

How to increase the max upload file size in ASP.NET?

I have a form that excepts a file upload in ASP.NET. I need to increase the max upload size to above the 4 MB default. I have found in certain places referencing the below code at msdn. [ConfigurationPropertyAttribute("maxRequestLength", DefaultValue = )] None of the references actually describe how to use it, and I have tried sever...

JSF Upload component: alternate triggering

Hi all, I have a JSF form that needs to upload a file via an icon click (i.e. without showing the textfield/browse button of the file upload component). Is it possible to trigger the file-open dialog and uploading functionality of the upload component via some other component type? ...