file-upload

jQuery AJAX Fileupload crossbrowser support

I'm currently working on an AJAX file upload script, which works like a charm in Firefox but doesn't work in IE. this is the basic HTML I'm using: <form > <input type="file" name="FileFields" id="FileFields"/> <button type="button" onclick="uploadFile();" id="uploadButton">Upload</button> <ul id="files"/> ... other form...

Use file_put_contents as Upload Function?

Can i also use file_put_contents($fileapp,$content,FILE_BINARY); to move uploaded files? ...

ASP.Net File Upload with CRC check

Is there a file upload control for ASP.Net which performs a client-side checksum calculation (CRC, MD5, etc) on the file contents and transmits the checksum to allow for server-side checksum validation? I have looked through answers on several file upload questions, but did not find this feature mentioned anywhere. ...

Keeping alive PostedFile.InputStream (ASP.NET)

Hello! Maybe it's the worst practice in the world, but I was wondering wich's the best way to "keep alive" the InputStream of the FileUpload Control. I would give you one example. Let's assume you have the FileUpload control in one WebForm, and you want process it in the next WebForm (after Response.Redirect). It would be great (unles...

Pylons Uploading Distorted Images on Windows

I'm creating an web app in Pylons, and am working on an image upload action. This is currently running using egg:paste#http on my windows machine, in the basic development configuration described in the pylons documentation quickstart. When I POST an image to my application, then move the image to the web root directory, then pull the ...

FileUpload Status Indicator ASP.Net C#

There are other similar posts, but they all want a progress bar. I don't care. I will probably end up buying Ajax Uploader, but I would like to know if there is a way to just let the user know if a file is in the process of being uploaded. I have tried an Ajax ProgressIndicator but it doesn't work...The file upload part works, but the ...

Does flash always post a "Filename" parameter when doing a file upload?

I have tried two flash upload components, swfupload and uploadify, and both seem to generate POSTs with a "Filename" parameter. My problem is that the service I'm posting to has a strictly specified set of allowed parameters and Filename is not one of them. So, is it at all possible to remove this parameter from the post? ...

Three problems in uploading a file into database and then how to download it back

<?php $con=mysql_connect("localhost","root",""); if(!$con) { die('Could Not Connect:'.mysql_error()); } mysql_select_db("tcs",$con); $upload_to = "./uploadedfiles/"; move_uploaded_file( $_FILES["filename"]["tmp_name"], $upload_to . "/" . $_FILES["file"]["name"] ); ...

Asp.Net FileUpload doesn't work on Ajax UpdatePanel

Hello. I have an ASP.Net FileUpload inside an UpdatePanel. When I click on a save button inside the same updatepanel and check on serverside if that control hasFile it is allways false. Where is my error? Do I need to post the entire page? Thank you! ...

hotfile uploader

i want to write a cli program that uploads files to hotfile.com and returns the download links what is the best language to write it in and can anybody give me some hints how to send the file? Thanks ...

Is it possible to block php scripts in upload folder?

Hello, I'm experiencing my first form in php where images can be uploaded. I've seen some article on the web which explains it can be dangerous, so there is some way to block scripts on a specified folder? Something with .htaccess or php .ini instruction? ...

alternate to onchange event in <input type='file' />

Seems really a simple thing but can't figure it out. I've been using the onchange event on element and it works well. Once the user browses and selects a file, I get the path and upload it using a my custom js function. The problem is this doesn't work if a user selects the same file twice in a row, the onchange doesn't fire (which mak...

Limiting the filetypes dropdownlist options in the asp.net FileUpload control

I know how to validate this client and server side by extension and MIME type. That's fine, implemented, ready to go. What I want to do is in the file upload dialog there is the little drop down list that by default shows "All Files." I have seen similar controls in other sites and programs that effectively sort the directory for th...

How do I retain the Original Filename After upload in Symfony

I am using Symfony 1.4. Users from the backend application can upload files and publish them to the frontend. Using sfWidgetFormInputFile and sfValidatorFile, I would like to keep the original filename instead of the default functionality of a random string (i.e. Meaningful_filename.docx instead of a4b25e9f48cfb6268f34b691fc18cd76fefe...

how stop transfering form data when form is submitted to internal iframe?

i have a upload file form and a iframe. form is submitted to a php script with target to iframe. i want to stop uploading file when user click on a stop uploading button. how can i stop transfering data to iframe? ...

Multiple file uploader $_POST issue

I have the following form that uses some jQuery to allow an array of files to be submitted: <form enctype="multipart/form-data" action="index.php" method="post" > <input type="file" class="multi" name="test[]" /> <input type="submit" value="submit" name="submit" /> </form> When I use method="get" I get the following URL when submitt...

$_FILES array only has partial info

Hello, I'm trying to debug a very strange problem with the $_FILES array. When I try to upload a file, only the 'name' key is set, the type, tmp_name, etc. are empty, and it's returning error #1. For example: Array ( [name] => test.doc [type] => [tmp_name] => [error] => 1 [size] => 0 ) test.doc is a valid file, ...

Example code wanted for Zend_Form_Element_File in conjunction with Zend_ProgressBar_Adapter_JsPush

Hi, I've got a Zend_Form with a Zend_Form_Element_File item which I'm trying to provide a "upload progress" report to the user utilising Zend_ProgressBar_Adapter_JsPush. However, I can't figure out how to do this and I was wondering if anybody with more experience of this section of the Zend Framework could help. The examples on Zend's...

How to upload a file with PHP like <form enctype="multipart/form-data">?

Is it possible to do it with PHP? Best with a simple demo! ...

How to ignore a file input on a PHP form?

I have a PHP form with an optional file input. If no file is chosen, and I do print_r($_FILES) after submission, I get this: Array ( [the_file] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) ) On forms with no file input, the $_FILES array is just empty, which is what I would prefer to happen if the optiona...