file-upload

Read excel file from a stream

Hi! I need a way to read a Excel file from a stream. It doesn't seem to work with the ADO.NET way of doing things. The scenario is that a user uploads a file through a FileUpload and i need to read some values from the file and import to a database. For several reasons i CAN'T save the file to disk, and there is no reason to do so eig...

ASP.net - Multiple Upload with jQuery Multiple File Upload Plugin

I know how to upload with ASP.net's FileUpload control. What I want to do is use this jQuery Multiple File Upload Plugin to upload multiple files. Here is exactly what it does when multiple files are selected for upload: <input type="file class="multi MultiFile" id="MultiFile1_F3" name="file1[]" style="position: absolute; top: -3000px...

Zend_From_File upload, but file element is stored inside a js modal window! Not working

I'm developing an application ased on zend framework, and the problem that it is giving to me is this, when i echo zend file element like this: <div id="add_video" title="Add Video"> <?php echo $this->form->video_title;?> <?php echo $this->form->video_thumb;?> <?php echo $this->form->video_video;?> </div> And i have this i...

Uploading Files in ASP.net without using the FileUpload server control

How can I get an ASP.net web form (v3.5) to post a file using a plain old <input type="file" />? I am not interested in using the ASP.net FileUpload server control. Thanks for your suggestions. ...

Why is File Upload slow in IE when SSL being used?

Boy do I have a strange bug. I have a website that needs to upload large files. We are using the standard ASPx FileUpload control. We have modified the web.config to allow really large files. I am doing all these tests in FireFox, IE6, and IE7. For my test I am using a few 20 MB files (AVI, PDF, Excel). The file type does not affe...

PHP file upload problem

I've got a really annoying problem with file uploads. Users can choose a file in an html file field. When they submit the form, this file will be uploaded. On the serverside I just use standard PHP code (move_uploaded_file). I do nothing weird. Everything works perfectly. I can see the file on the server, I can download it again, ......

ASP.NET FileUpload Control - Security concerns when buffered to disk

The MSDN states that when a file is uploaded using the ASP.NET ( v.2.0 ) Fileupload control or the underlying HttpPostedFile that "Files are uploaded in MIME multipart/form-data format. By default, all requests, including form fields and uploaded files, larger than 256 KB are buffered to disk, rather than held in server memory." MSDN Lin...

Asp.net FileUploader doesn't work when using UNC file path

Let me start by saying, I'm no expert in windows file permissions, so maybe there is something very basic I am missing here. I have a Asp.net FileUploader control. I have a folder on the same machine as the Asp.net application I would like files to be uploaded to. I want to be able to tell the FileUploader to put the files in \\this...

Securely upload file to alternate server C# .net 2.0

I have a C# web application on .net 2.0 being hosted on server A. The web application allows users to upload files using <input id="File1" name="filMyFile" type="file" runat="server" /> to server A. This all works just fine. I am now being asked to modify the web application to allow pages being served by A to allow uploading directly...

Uploading multiple images + text fields in ASP.NET MVC

I'm very new to ASP.net MVC, so please be as descriptive as possible in your answer :) Let me simplify what I'm trying to do. Imagine I have a form where you want to enter some information about a car. The fields might be: Make, Model, Year, Image1, Image2. On the bottom of the form is a "Save" button. The associated Controller meth...

django / file uploads permissions

Hi there, I wrote a django app, but i have a little problem with the file permissions of the uploads files from a web form. Baically i can upload a .mp3 file but it always keep chmod 600. Th container folder has chmod 775, and the umask is set to 022. I'm in a shared hosting service. Thanks if any one can give a clue. ...

PHP file uploads being "hijacked" by partial uploads

I have a site that is receiving 30-40k photo uploads a day and I've been seeing an issue pop up with more frequency now. This issue is this: Our upload script receives (via $_FILES['name']['tmp_name']) a file (photo) that was NOT uploaded by the user & the majority of the time the file received is a "partial" upload. Of course at first...

FileUploads and rooted directories

The FileUpload control requires me to provide a rooted directory in the SaveAs() method. However, I would much rather the uploaded files go into a virtual directory, such as "~/UserFiles/[username]/[filename]". Is there a way for me to accomplish that? ...

Why SWFUpload ASP.Net samples not working?

http://swfupload.org/node/7/release Why these samples not working, anyone faced the same thing and have a fast solution to make it work? The solution is compiling and the default page is opening normal in FireFox but when i click on the button nothing happen And in IE the button not appearing at all ...

PHP temp file names for uploads colliding

When a user uploads a file, randomly it gets replaced by another user's upload, I've finally tracked down the issue to PHP and the tmp file name being reused. Is there a way to fix this? Is there a way to make better random names? It seems to degrade over time, as in the random file name seed gets weaker? This is on PHP 5.2.8 and FreeBSD...

FileUpload - Verifying that an actual file was uploaded

I have a FileUpload control (FileUpload1) on my web form, as well as a "Sumbit" button, a label, and a hidden field that contains a UserID. I have the following code in the button's click event: string path = Server.MapPath("~/userfiles/"); if (FileUpload.HasFile) { try { FileUpload1.SaveAs(path + UserID.Value + "/imag...

gwt fileupload

I would like to trigger a click on the browse button on a hidden FileUpload widget. The following code works fine on IE 6+, but doesn't work in FireFox. final FileUpload upload = new FileUpload(); upload.setVisible(false); upload.setName("uploadFormElement"); panel.add(upload); panel.add( new Button("Select File", new ClickListener(...

php image uploading and permissions

Can you please tell me if there are ways to upload images with php without chmoding the directory with `ftp_site($conn_id, 'CHMOD 0777, /www/images/thumbs');` to circumvent [function.move-uploaded-file]: failed to open stream: Permission... Thanks! ...

php file uploads over 200mb

after changing the max file size, session times, and post max size is it wise to use php to upload files larger than 200mb? reliable? (and this is ignoring whether a client connection is maintained) edit: done through http not ftp ...

Using Content-Range file uploading with ASP.Net

I've got an ASP.Net web site that needs to accept large file uploads from a Flex application. It sends the file using the Content-Range to chunk the file it sends. Does ASP.Net have anything in its HttpFileCollection and HttpPostedFile that facilitates handling files posted this way? Is each chunk sent as a new post to the page? ...