file-upload

Multiple file selection for an upload control

Hi, I was trying to do something like this: http://www.element-it.com/Examples/MultiPowUpload/AdvancedHTMLinterface.html But in my search for information I found that is not possible to perform multiple file selection with simple HTML and JavaScript (and JSP in the server side). There is a way to do this without using Flash? A third pa...

How to set file programmatically using Paperclip

I have rake task to seed the application with random data using the faker gem. However, we also have images (like logos) that we want uploaded in this rake task. We already have Paperclip set up, but don't have a way to upload them programmatically in a rake task. Any ideas? ...

Is there any way to Upload Video Files using PHP ?

I want to upload and store video files to my server using PHP. Could any one please provide me the code? Please keep in mind that these files are generally larger than 200 MB. ...

ATT00006.dat file autmatically attached in mail attachment

I have a page that have fileupload control, on the submission of the form, when the fileupload control has file, file is sent via attachment in a mail and working absulutly fine, but when the fileupload control does not have file, ATT00006.dat file is automatically sent via email attachment. Reference URL: http://nextech.pk/Enquiry.aspx...

Lift image upload, resize, store in database, display

Is there a succinct example of how to upload an image, resize it, store it in a database and then serve the image up using Lift? I'm sure I could piece it together from the file upload, Java 2D API, Lift Mapper and Response APIs. But is there any example code I can follow to do it the 'correct' or recommended way? ...

Why does HttpWebRequest GetResponse block for such a long time?

I have some fairly simple code that uploads a photo or video to an endpoint (using HTTP PUT or POST). Every so often I see connection closed exceptions thrown, and in reality the photo/video was uploaded just fine, it's calling GetResponse where the exception occurs. One thing I've noticed is that GetResponse can take an awful long time...

How to upload multiple files in jsp?

I have been using "input type='file' " tag to upload single file but I want to extend the functionality to upload multiple files (selecting multiple file in the same dialog box to upload). I don't have any idea how to accomplish these, any ideas and suggestions? ...

Upload files outside of webroot

Hello. I'm developing a shopping system where shopmanager should be able to upload files to the system. Those files can the be sold for a fee and should only be accesible through providing a purchase code. The whole purchase code and uploading thing is working fine. Just have to block the direct access to the file. Questions: How ca...

ASP.NET MVC Ajax Form: Is enctype correct? Why doesn't file get uploaded?

In the case that the user doesn't have Javascript activated, in order to draw a form, I begin this way: <% using (Html.BeginForm("Create", "Language", FormMethod.Post, new {enctype="multipart/form-data"})) { %> If the user has Javascript activated, the following code is used: <% using (Ajax.BeginForm("Create", "Language", new...

Scanning attachment before uploading on the server?

I am giving to upload functionality, i want that files must be scaned on Server side, Before they uploaded and then they are are saved on that server. Is there any free available antivirus engines to scan the attachment on the server? Thanks ...

Why is my .zip file corrupted after an HTTP file upload?

I'm trying to use a CGI script to accept and save a file from a program that is using an HTTP POST to send a zip file. In the MIME section of the HTTP header it looks something like this: Content-Disposition: form-data; name="el_upload_file_0"; filename="BugReport.zip";\r\n Content-Type: application/octet-stream\r\n\r\n In my CGI cod...

Struts 2 File Upload Interceptor configuration problem

I'm having two problems when trying to configure the Struts 2 File Upload Interceptor in my application. I want to change the parameter maximumSize (the default value is 2 MB, I need it to be 5 MB) and the message resource struts.messages.error.file.too.large (the app locale is pt_BR, so the message is in portuguese, not english). The a...

Python CGI FieldStorage Too Slow

Hi Everyone, I have recently been learning python and have run into a problem when uploading files larger than 1-2mb with cgi. I am building a file uploader with a progress bar that updates with ajax. Everything is working great for smaller files and for larger files once it gets past the line: form = cgi.FieldStorage() I think ...

Flex 3 multiple upload progress monitoring

I have a Flex3 application which has to be capable of uploading multiple files and monitoring each files individual progress using a label NOT a progress bar. My problem is that a generic progress handler for the uploads has no way (that I know of) of indicating WHICH upload it is that is progressing. I know that a file name is availabl...

php file uploading and storing

I want to upload a file on my PHP server. I am currently able to upload it on server using the following code but I don't know how I can store it on the server. How can I store the file in a specific directory? I also want the users to be able to download the files but only once they log in not before that. For example i store the fil...

file upload "multipart/form" Exception org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException

I tried to use the file upload using Apache Commons but the following exception thrown org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null My html code is <form name="inp" action="upload.jsp" method="get" on...

How can I use Apache to serve static content for a RoR app when I have only .htaccess access (and can't add Apache modules) [on Dreamhost shared server]

Hi, Are there any Rails/Apache gurus that might know if it's possible (and how) to have the ability for users to upload their content to my RoR application but then subsequent access to such static content would be: a) served by APACHE web server [to avoid the overhead of going via Rails], but b) still want to have an authenticatio...

upload file proxy ajp isuue

I moved to new server and changed apache-tomcat connector from mod-jk2 to proxy-ajp. Since I have this problem with file(xls file to be precise) uploading. If I try file uploading through http://my.project.net**:8080**/fileupload.jsp it works just fine, but I want it to be secure and there is the problem, if I use https://my.project.net...

File security submission

I have a website where users are going to submit files (pdf, doc, xls). What do I need to do to ensure that the files are secured during submission? What type of security I need to put on my server to ensure that the files are going to be secure/hacker proof? What's the technique that you recommend to re-set passwords to allow the user...

php:uploading a file on server

I am using the following code to upload the file on my server. How do I store it in a particular folder? if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " ...