file-upload

Django file upload input validation and security

I'm creating a very simple django upload application but I want to make it as secure as possible. This is app is going to be completely one way, IE. anybody who uploads a file will never have to retrieve it. So far I've done the following: Disallow certain file extensions (.php, .html, .py, .rb, .pl, .cgi, .htaccess, etc) Set a maxim...

PHP Fatal Error while uploading/resizing images..

Hi all, I'm using a code which will upload an image, put the image in the "resize" folder, resize the image, move the image into another folder, then delete the image from the "resize" folder, however I'm getting the following error: "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 14172 bytes) in /home/p...

Upload an entire folder's files with jquery.MultiFile.js instead of having to select each file individually

I have jquery multi-file working as shown in link text. However, what I really need is to be able to select a folder, then every file contained in the selected folder to be listed, at which the user could then remove any unwanted files before hitting 'upload.' Has anyone done this with jquery multi-file upload? Would it be difficult to ...

FileUpload SaveAs UnauthorizedAccessException error (Dotnetnuke)

Hi guys, I am trying to save an image file in a custom module I am building for a DNN site. However when I run the code I get an UnauthorizedAccessException. if(upLoadAddImg.HasFile) { String imageLocation = ConfigurationManager.AppSettings["ImageFolderPath"]; //Upload file upLoad...

Basic File upload in GWT

I'm trying to figure out how to upload one file using GWTs FileUpload widget. I'm using GWT and Google AppEngine with Java but I would like to upload file to my own Linux server. I have the following code already but now I can't figure out how to submit my file to the Google AppServer server and save it to another server: public class ...

FileUpload control clears itself

Hi all, I'm having some trouble with the FileUpload control and was wondering if I could get some help. On my page I have a FileUpload control, and a drop down list. So the user browses to the file they want, and then select an option from the drop down (which enables some checkboxes that are also on the page for use, depending on...

Is there much overhead with HTTP uploads?

I have files often uploaded via browser and maybe considering using another method to make uploads faster. When a file is uploaded via browser, is there much overhead due to encoding? Do you know how much? Thanks! ...

What do you use to upload your files (code/documents) to a live server?

rsync zsync Is there any other better sync/backup tool available on linux. I have a local installation of my site, a wiki. I wish to make changes to my local site both in terms of wiki content/ and plugins/templates, and then just wish to press a button :D or run the command over a folder, it should check for the diff for my local files...

Uploading Image not Working

I am trying to write a PHP script that can upload multiple files. for($i=0;$i<count($_FILES['uploadimg']['name']);$i++){ $name = $_FILES['uploadimg']['name'][$i]; $type = $_FILES['uploadimg']['type'][$i]; $filepath = $_FILES['uploadimg']['tmp_name'][$i]; $size = getimagesize($filepath); $img = file_get_contents($file...

Apache Commons FileUpload problem on Glassfish server

I have simple web app that just has one Servlet that accepts data file and saves it to the server. I'm using "apache commons FileUpload" library. File uploading work fine on my local server (I'm using Glassfish for my Dev and Prod server). I can upload any size files. Here is my memory info: -XX:MaxPermSize=512m -Xmx1024m Here is the ...

SubmitCompleteHandler GWT FormPanel never trigger

Hi all, This problem probably has been discussed, but this one is slightly different. I'm using GWT FormPanel + FileUpload widget to upload a file. My backend is python-django. My problem is, the GWT FormPanel never trigger the SubmitCompleteHandler event. And on the django log, I can see "Broken pipe", which probably indicates that...

restrict the dimensions of image file to be uploaded

Hi all, How do i restrict the image's dimension that is being uploaded via a php script.? I am using cakephp v 1.2 thanks ...

Get full path of a file with FileUpload Control

I am working on a web application which uses the FileUpload control. I have an xls file in the full filepath 'C:\Mailid.xls' that I am attempting to upload. When I use the command FileUpload1.PostedFile.FileName I cannot get the full filepath from my system. However, when I use the above command in another system it works fine. I ...

web application-file upload

Hi, I am developing an web application. I am using file upload control to browse files. i have xls file in C:\Mailid.xls path. When i use FileUpload1.PostedFile.FileName command i was get the full path(C:\Mailid.xls). Today I installed IE 8 After the installation I unable to get the full path of the file what could be the problem Eve...

finding extension of the file being uploaded using php

I am using PHP for a website. I have to get users upload their pics. Now, the pics can be in jpeg or png or gif format. My problem is that i identify a user by a unique userid, so I want to save the pics as: userid.jpg or userid.png etc. Now, how do i find out the extension of the file selected by the user using php? ...

Basic jQuery plugin for flash-based single file upload?

Hello, I'm looking for a simple jquery plugin to upload a file via flash. What I want: ability for the script to interpret an XML response from the server What I don't want: multiple file upload progress indicator and all the bells & whistles ...

PHP - Looping through $_FILES to check filetype

My first question on SO, thanks. :) I'm developing a support issue logging system for my company and it must allow for files to be uploaded aswell as any problems submitted to our database. There could be from 0-6 different uploads to check, along with a support issue. I've managed to get an accurate variable of how many files there is ...

FileUpload1.PostedFile.FileName is throwing exception

Hi, I am using ASP.NET to read the data in the excel file. I am using a file upload control to read the file. I am able to read the data from the file in my local machine, but after deploying my code in the server, when I try to read the file from the client machine, I am getting an exception. FileUpload1.PostedFile.FileName is throw...

asp.net mvc fckeditor upload image error

has anyone been able to get it to work with asp.net mvc ? changed the extension in config to .aspx there's a asp.net control as referred here http://forums.asp.net/t/1060019.aspx but haven't seen any asp.net control usage in mvc is it possible if there's no viewstate required ? anyone been able to configure fckeditor to uploading ima...

Problem uploading a file via ajax using PHP

Before starting, note that I have to update a website that is not mine, so I can't redo the whole logic. If I were to do this I would do it differently. I have a cakephp application with a form with a lot of fields. In this form you can browse for a file and save it asynchronously. Here is how it's done: <input type="file" name="data[F...