file-upload

Attachment_fu file saving problem

Attachment_fu plugin is kind of old, but I have to modify an old app and I can't use another plugin like paperclip etc. So here's the code without further ado Submissions table structure --------------------------- | content_type | varchar(255) | YES | | NULL | filename | varchar(255) | YES | | NULL app/mo...

ASP.NET FileUpload

Greetings! I am using the ASP.NET FileUpload control to allow users to upload text files to our web server. Everything works great in terms of saving the file to where we wanted, etc, using the SaveAs() method of the control. But we were caught off guard by one seemingly simple caveat: the original timestamp of the uploaded file was lo...

How can I prevent double file uploading with Amazon S3?

I decided to use Amazon S3 for document storage for an app I am creating. One issue I run into is while I need to upload the files to S3, I need to create a document object in my app so my users can perform CRUD actions. One solution is to allow for a double upload. A user uploads a document to the server my Rails app lives on. I val...

HTTP POSTed files automatically uploaded to root directory

I just inherited an ASP.NET WebForms web application that I was tasked with refactoring. One of the features is a file upload and while debugging I noticed that as soon as a file is posted to a certain page/handler, it is automatically uploaded to the root directory of the application. The file is then moved to the proper location. I ...

Python timed file upload

I have a python script that accepts a file from the user and saves it. Is it possible to not upload the file immediately but to que it up and when the server has less load to upload it then. Can this be done by transferring the file to the browsers storage area or taking the file from the Harddrive and transferring to the User's RAM? ...

What info is included with file on upload via http?

If I'm uploading via http, do I have to wait till the file is transferred to determine the size? Also, what other info is available that would be available on the local copy? Do Last Modified and Created get reset to the upload time or are they preserved? ...

Use WatiN for automation upload file on the website

I need upload file on the website. But Have a problem, i can't choose file automatic in code. Always browser show me choose file window. What wrong in my code? IE ie = new IE("https://www.xxxx.com/WFrmlogin.aspx"); FileUploadDialogHandler uploadHandler = new FileUploadDialogHandler(@"D:\065-6405_URGENT.xls"); ie.WaitForComplete(); ie.T...

plupload variable upload path?

Hi all, I'm using plupload to upload files to my server (http://www.plupload.com/index.php), however I wanted to know if there was any way of making the upload path variable. Basically I need to select the upload path folder first, then choose the files using plupload and then upload to the initially selected folder. I've tried a few ...

JSP/Servlet: Create a form for uploading an unknown number of files

I need to create a form that will allow, among other things, a user to upload an unknown number of files to the server running Tomcat. It would be nice if the form could add upload slots to the form as needed. I haven't found much useful on the subject, so I thought I would poll the community. ...

File upload help in JSP /Struts 1.2

Hi All, I have seen lot of reviews and have not been able to figure out how I can solve my problem.. Problem: Currently we have a page to upload the file from local machine to the respositry. It is currently using Struts upload. Now the current requirment is, Since users upload around 1gb of file, they are made to wait for a long tim...

File Upload with HttpWebRequest doesn't post the file

Hello All, Here is my code to post the file. I use asp fileupload control to get the file stream. HttpWebRequest requestToSender = (HttpWebRequest)WebRequest.Create("http://localhost:2518/Web/CrossPage.aspx"); requestToSender.Method = "POST"; requestToSender.ContentType = "multipart/form-data"; requestToSender.KeepAlive = true; request...

Spring upload file

hi every one, I'm a novice in Spring, i started to develop an application to upload files,i used the official spring documentation but, i have this error: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream at org.springframework.web.servlet.DispatcherSe...

Upload file and parse in classic asp

Any ideas how file uploading and (simple) parsing can be done through pure ASP? I have various upload scripts, but they all either save a file to a folder or in a database. I can't seem to modify these examples correctly to put the file in an array. Here's the 2 scripts that I'm currently using: http://www.asp101.com/articles/jacob/sc...

FileUpload to FileStream

Hello, I am in process of sending the file along with HttpWebRequest. My file will be from FileUpload UI. Here i need to convert the File Upload to filestream to send the stream along with HttpWebRequest. How do i convert the FileUpload to a filestream? ...

ASP.NET FileUpload - How to change the language of the "Browse..." button description?

I know the very similar question was posted here already (http://stackoverflow.com/questions/94316/how-to-change-the-text-of-the-browse-button-in-the-fileupload-control-system-web) and I understand it's not possible to change the description to some custom text, but isn't it at least possible to change it to a different language (e.g. to...

How to display progress loading image on file upload in PHP?

How to display simple progress loading image on file upload in PHP? without the use of APC ...

pylons file uploading - access 1st file

Currently, I'm using request.params["filename"] to access uploaded files. In Pylons, what is the syntax to access a file if you don't know the filename, something like request.files[0]? ...

How do I utilize the Facebook API to upload a video on my server?

I'm quite new to using APIs and I'm confused as to how I should (or even can) implement a video upload on my private server. The idea is that the FB video upload can sometimes be unreliable, is relatively slow to a direct server to server connection and can't conduct batch or simultaneous uploads efficiently or reliably. I'm thinking t...

How to show current file in templates with Django FileFields

Hi, I am kinda stuck, I've been using Django for a while now, but I cant actually seem to find this thing out. And thats weird because it should be a simple thing. I've been googling around and can't seem to find a solution, it maybe because it is a simple thing. The problem is, I have a ModelForm, and it has a FileField, when I rende...

Handling Extended ASCII in File Uploads

A website I recently completed with a friend has a gallery where one can upload images and text files. The only accepted text file (to ease development) is .txt and normally goes off without a hitch (or not..) The problems I've encountered are the same of any developer: Microsoft's Extended ASCII. Before outputting the text from the f...