file-upload

Upload file suggested by microsoft doest work for me in CGI.

Hi all, we would like to upload a .zip file in windows mobile to .cgi script running at server. in desktop we have "Webclient.uploadfile" API, it does't support in winmo. do we have any alternative methods to upload file in windows mobile.. we tried a sample method suggested by Microsoft,but it doesnt work for our CGI script. please le...

Asynchronus File Upload with StateServer Mode

Hi Friends, I want to implement Asynchronus File Upload. I've tried ajax:AsyncFileUpload control. It's working fine only with InProc Mode. But I'm using StateServer Mode. Any help from anybody? Thanks in advance. Regards Debashis ...

Streaming uploaded files directly into a database table

I have several applications that allow users to upload attachments that are stored inside a database table. This has worked fine for several years because it was initially intended for smallish image files, but now they want to upload very large files (~80MB). This is causing the server to run out of memory (and the upload to fail) bec...

Validating Uploaded Files in Django

A Django app that I am working has an Event model. An Event may have associated photos, static html files and pdf files. I would like to allow trusted users to upload these files, but I am wary about security, especially having read the following in the Django docs (link). Note that whenever you deal with uploaded files, you shoul...

upload file using inputstream in GAE java

I am trying to upload file to google sites and am obtaining the stream using apache commons file upload. I get the input stream as under InputStream is = fileItem.openStream(); How will I convert this input stream in file object so that below call succeeds and I am able to set the MediaFileSource to above converted file. Atta...

File uploads not working within jQuery UI Dialog

So I have a rather odd issue that I wanted to see if anyone has some insight into. I have a page in which I display a grid of files that have been uploaded to our server. The toolbar for the grid provides them with the ability to upload more files. When they click the "Add File" button on the toolbar, a jQuery UI Dialog modal window ap...

Flash uploaders (Uploadify and SwfUpload) - problems with special characters in filenames

I need to implement a flash-based file-uploader, that will allow me to upload multiple files at once and view progress. I tried Uploadify and SwfUpload and it was quite easy getting them to work. However, for both I run into problems, when the users try to upload files, that have filenames with special characters (such as Danish æøå or...

Verifying Uploaded File

I am working on a document that requires a user to upload a Microsoft Word Documents. Apart from checking the file extension to be .doc or .docx, is there any other way i can verify that the uploaded file is actually a Microsoft Word Document and not any other file renamed to a .doc or .docx extension. Thanks in advance. ...

foreach on Request.Files

I'm attempting upload multiple files in ASP.NET MVC and I have this simple foreach loop in my controller foreach (HttpPostedFileBase f in Request.Files) { if (f.ContentLength > 0) FileUpload(f); } The previous code generates this error: Unable to cast object of type 'System.String' to type 'System....

Using a file form field with a Java servlet

I am tring to retrieve a filename or the file itself for use in a java servlet (from a web form). I have a file form field: <form enctype="multipart/form-data" method="post" action="SaveDictionary.do"> <label> <input type="file" name="dictionary_file" id="dictionary_file" /> <br /> </label> <label> ...

How to limit upload file size in Wicket

How to limit file size in uploads in Apache Wicket version 1.4? I am using FileUploadField to handle upload with normal form submit without any Ajax stuff. Is it enough to use Form.setMaxSize() to limit the size of uploaded file? If too large file is uploaded, the browser will upload the whole file and Wicket will create validation er...

Why ItemSkippedException?

I am trying to update content in Google sites and am reading the stream in exception VersionConflictException. When I check the stream it is all fine and is completely loaded in POST request but then I get following error. org.apache.commons.fileupload.FileItemStream$ItemSkippedException at org.apache.commons.fileupload.MultipartStr...

File Upload / Memory Stream Security

Hi, We are thinking of have a form on our webpage that would allow people to email attachments through. The method used to do this is via a memory stream, avoiding any files being written on to the actual server. Is anyone aware of any security risks / how to protect yourself against these? I would love to hear from you. Best regard...

Upload 95Gb csv file into MySQL MyISAM table via Load data infile: CSV engine an alternative?

Hi guys, I'm trying to upload a 95Gb csv file into a MySQL database (MySQL 5.1.36) via the following command: CREATE TABLE MOD13Q1 ( rid INT UNSIGNED NOT NULL AUTO_INCREMENT, gid MEDIUMINT(6) UNSIGNED NOT NULL , yr SMALLINT(4) UNSIGNED NOT NULL , dyyr SMALLINT(4) UNSIGNED NOT NULL , ndvi DECIMAL(7,4) NOT NULL comment 'NA value is 9', r...

Why do updating Google site with file upload throws File ItemSkippedException?

I have a media source object MediaStreamSource ms = new MediaStreamSource(is, mediaType); AttachmentEntry newAttachment = new AttachmentEntry(); and try to insert it and in case it already exists then update it instead of insert. try { return service.insert(new URL(getContentFeedUrl()), newAttachment); } catch (Versi...

Apache commons file upload and percentage progress in Google Apps

I am trying to use ProgressListener update call to obtain percentage completion of each file. Number of files are dynamically chosen and uploaded. public class ProgressListenerImpl implements ProgressListener Will I be able to use the "item" parameter in the update call? update(long bytesRead, long contentLength, int item) And...

How to upload and download file from a server using C#

I am developing a webpage in that the user can download their Resume for Edit. So I have a link to download the article. I use the following code for download. DataTable dt = user.getUserDetails(2); user.WriteFileFromDBbyUserArticleID(Server.MapPath(Convert.ToString(dt.Rows[0].ItemArray[0])), Convert.ToInt32(2), "CV"); FileUtil.writeFil...

Silverlight File Upload not working on server side

I made File Upload following this tutorial, but for some reason my server side is not working at all. http://www.c-sharpcorner.com/UploadFile/nipuntomar/FileUploadsilverlight03182009030537AM/FileUploadsilverlight.aspx ...

Allow users to upload files to server via email?

I am administrating a small, private website with 100% trusted users (about 60 people, i know them all personally). I am having many problems with the PHP based upload system i have in place currently, mainly with users encountering timeout errors and other varying issues due to the way the upload is handled (not to mention the complete...

Question about file transfer for socket programming

Is there a good method on how to transfer a file from say... a client to a server? Probably just images, but my professor was asking for any type of files. I've looked around and am a little confused as to the general idea. So if we have a large file, we can split that file into segments...? Then send each segment off to the server. S...