file-upload

Django File upload size limit

I have a form in my django app where users can upload files. How can i set a limit to the uploaded file size so that if a user uploads a file larger than my limit the form won't be valid and it will throw an error? ...

how do I POST a jpeg to a web form the way a browser would?

I need to upload a file to a form. This is a generic browser based upload I want to mimic. I have looked through the HTML documentation but I can't figure out how it works. right now I am using a URL to submit the rest of the form information "www.domain.com/form.html?field=value&field2=value2". This is all there is to the HTML for the...

Is there any way to "peek" at a file while it's uploading through HTTP onto a Windows box?

I need to add a file upload function to an ASP.NET website and would like to be able to read a small portion of the file on the server while it's still uploading. A peek or preview type function so I can determine contents and give some feedback to the user while it is still uploading (we're talking about large files here). Is there an...

File Upload via PHP and AntiVirus in Linux?

I was wondering, if I was making a file or image hosting/transfer site, whether or not there was a good approach to check for viruses for files that users are uploading? I was thinking of this: Use traditional PHP file upload form to upload the file to the server. Put files in a queue folder Move the queue folder to a "process" folder...

File Upload drops with no reason

Hallo I want to make an file upload. The script should take the image, resize it and upload it. But it seems that there is any unknown to me error in the upload. Here the code define ("MAX_SIZE","2000"); // maximum size for uploaded images define ("WIDTH","107"); // width of thumbnail define ("HEIGHT","107"); // alternative he...

I cannot get the full physicial path of a selected file

I want full path of selected file using GWT by using FileUpload. Can you help me? ...

Thumbnailing and then Saving as a Blob with PHP in Wordpress

The below code seems like it should work; however, the blob in the database only contains 0 after the function is run. Does the below code look accurate? If not how can I fix it? $tmpName = $_FILES['picture']['tmp_name']; $fp = fopen($tmpName, 'r'); $binary = fread($fp, filesize($tmpName)); fclose($fp); $originalImage = imagecre...

Uploading to google Docs - Unknown authorization header Error 401 - PLease Help

Hi guys I'm trying to upload a document to google docs but I'm getting an error namely an Unknown authorization header Error 401 to be exact.. I'm developing for google apps marketplace here - my code for uploading is: $client = getGoogleClient(); $docs = new Zend_Gdata_Docs($client); uploadDocument($docs, true, $FILES['file']['name...

Anyone know of a Snippet or File Repository Application in PHP?

I am looking to start a community based on user posted scripts such as bashrc, screenrc, aliases, etc. Does anyone know of a web application in PHP that would do that? I am not looking for a snippet program, or a link directory. Users can store linux/UNIX/Windows configuration files, as well as maybe an option to attach a screenshot....

Flash Photo Uploader - Take photo from web cam

Are there any examples of Flash + Javascript libraries which allow you to display a variable-sized Flash movie in your page that captures Webcam snapshots (still frames), and submits them to your server in a JPEG format? Currently I know of: jpegcam Thank you ...

It is possible to upload a file with ajax and percent feedback to an iis 6 server with plain asp support?

Shame on me, but i have a plain asp iis6 server and they want an ajax upload input with percent upload feedback, what should i do? do i ask for .net capabilities? any guidelines or some advice? Thanks for advance ...

What is the best way to implement a big (1GB or more) file uploader website in PHP or Java?

What is the best way to implement a big (1GB or more) file uploader website in PHP or Java? Using the default way of uploading in PHP or Java results in running out of RAM space and slowing the website very dramatically. ...

App Engine and commons FileUpload...

I'm sending a message built with google's protocol buffer from and android device using this code: // Set up the HttpClient HttpClient client = new DefaultHttpClient(); String url = "http://192.168.2.103:8888/sdroidmarshal"; HttpPost postRequest = new HttpPost(url); // Create the content for the message AbstractContentBody[] parts = ne...

filter the file type with the file upload control

how to filter the file type with the file upload control in asp.net & c#.net for example on clicking the browse button of the file upload control ,it should open browse file dialog with only excel file types. how is it possible ...

$_FILES is null, $_POST is not null

When I am going to upload a file, my $_POST variable knows the file name, but the $_FILES variable is null. I've used this code before, so I'm really stumped. Here's what I'm using for input: <label for="importFile">Attach Resume:</label> <input type="hidden" name="MAX_FILE_SIZE" value="10000000"> <input type="file" name="importFile" i...

PHP File upload fails with blank screen when size exceeds 742 KB.

Hi friends, This is one of the most bizarre errors I've come across. So I've written a little file upload web app for my friend and it works fine for any file less than or equal to 742kB in size. Needless to say, I arrived at this precise number based on relentless testing. Weird part is that if the file size is just a few KB more, fo...

flash upload control in javascript

how to use a swf upload control in javascript for a page developed in asp.net & c#.net? can any one provide the code snippet? ...

Using delayed_job to process file uploads across multiple servers

Does anyone have any good resources on how to do this? Basically, I'm working on a project (in Rails) where people can upload files. They might be big. I'd like to process them using delayed_job before sending them to S3. I'd also like to do this processing on a separate job queue server, rather than on the webserver itself. I'd rather ...

windows server 2008 issue

i have a website in windows server 2008. I'm using aspupload component. the upload works when the file size is small but fails when the size is huge. Is there some settings in iis 7 that limits the upload size? -Vivek ...

asp.net C# uploading big file and processing it

I want to be able to upload file from my .aspx page to my web server so that it can be preocessed into a different format. e.g. user will upload a doc and in few seconds it would see a pdf version of the doc on the web page. I have web service available which can convert doc to pdf. now 1- how do i automate upload + conversion proces...