file-upload

manage uploaded files in database or file system?

I'm going to incorporate the feature for my users to upload small files which are under 2mb (jpg, gif, pdf and docs). For page loading times purposes and generally managing files in future, can you recommend is it best to have the files uploaded to the filesystem (and link to it via the database) or upload to the database directly as a B...

Is it possible to upload a image using the src parameter in PHP?

Hi Friends, I know this question may be wrong one.Anyway I want to know is it possible or not? I am using the VBscript as client side language and PHP as server side language.By using the VBscript I got a image from the scanner and that image is stored in local system.I want to move it to server without client choosing the file. When the...

How to iterate over uploaded files in Grails

Hi, I have this GSP: <g:uploadForm name="myForm" action='save'> <input type='file' name='documentFile' value=''/> <input type='file' name='documentFile' value=''/> <input type='file' name='documentFile' value=''/> <input type='file' name='documentFile' value=''/> <input type='submit' value='Submit'/> </g:uploadF...

Rails3, Cucumber, Capybara, File upload => bad content body (EOFError) ?

I'm having a hard time getting a simple file upload test working. I'm using Rails 3.0.0 on ruby 1.9.2 with Cucumber and Capybara. View: <%= form_tag "/upload/create", :multipart => true do %> <label for="file">File to Upload:</label> <%= file_field_tag "file" %> <%= submit_tag "Upload" %> <% end %> Cucumber Step: When /^I upl...

Simple file upload without using asp.net fileupload control

I have an html page and I want to upload a file usign the basic html input file without using the asp.net fileupload control. I tried to write the following code in the html page and redirect it to the home page (aspx page) <form action ="../../default.aspx" enctype="multipart/form-data" method="post" name="myform"> <in...

EXTJS & PHP Upload file

Hello, I use the UploadFile example in EXTJS (http://dev.sencha.com/deploy/dev/examples/form/file-upload.html) but I don't know what to write in the server side to save the uploaded file (in php) help me please My client side code is : var fp = new Ext.FormPanel({ //renderTo: 'fi-form', fileUpload: true, width: 500, frame: true, titl...

Uploading a file from a local .net application through the HTML Form file upload feature (php server side)

Hi I want to make a local program in C# that manages files between multiple users. I want to utilize the file upload option supported by HTML Form/PHP from within a .net application, but I'm not sure how to go about doing this. Even a starting point would be awesome. All my google searches return using the HTML Form upload from within ...

jquery ajax form success callback not being called

I'm trying to upload a file using "AJAX", process data in the file and then return some of that data to the UI so I can dynamically update the screen. I'm using the JQuery Ajax Form Plugin, jquery.form.js found at http://jquery.malsup.com/form/ for the javascript and using Django on the back end. The form is being submitted and the proc...

File Uploading - Limit File Types in "File Upload" Window

Hi, I have a question regarding file uploading, I need to limit file types, but I like to do it in the “File Upload” window, so the user can’t even see files that are not allowed for uploading, I like to do it in js or jquery. I know it’s possible for example, uploadify plugin does this, but I don’t want to use it for a number of reason...

Problem with FileUpload - Null Value for Multipart File

I am working on a Spring web application and need to implement a simple FileUpload for one of my pages. The page for the JSP contains the following snippet of code which included an upload field for uploading the file. <form:form commandName="editMemberInfoModelObj" method="post" enctype="multipart/form-data"> <h1>Edit Member I...

html image file upload failing silently

I have a form where users can enter multiple images to upload along with a bunch of other information. It looks like there is some condition that is causing the last few images not to upload, for some cases. For example, testing the form when uploading about 5 images, they all upload fine. When there are more, somewhere between 10 and 20...

Regular Expression validator with file upload control (asp.net) does not work in FireFox

I am using Regular Expression validator with file upload (Asp.Net) control in-order to restrict the files uploaded. My regular expression is as follows: ^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.wmv|.avi|.mpeg|.MPEG|.mp4|.MP4|.flv|.f4v)$ It gives error message of the validator even after uploading the right file in Firefox. But it ...

UnicodeEncodeError: 'ascii' codec can't encode character

When uploading files with non-ASCII characters I get UnicodeEncodeError: Exception Type: UnicodeEncodeError at /admin/studio/newsitem/add/ Exception Value: 'ascii' codec can't encode character u'\xf8' in position 78: ordinal not in range(128) See full stack trace. I run Django 1.2 with MySQL and nginx and FastCGI. This is a problem...

PHP Upload Timeouts: More Efficient Upload Script?

Hi Guys, I have written a pretty basic upload script that takes the file and uploads it using the standard move_uploaded_file method as you see below: //UPLOAD IMAGE $path = "../../clients/$realClient/" . $_FILES["image"]["name"][$x]; move_uploaded_file($_FILES["image"]["tmp_name"][$x], $path); $displayPath = "pr...

How can I securely transfer files

I need to automatically transfer an xml file from server A over internet to a server B. Ftp works fine, but should I be use a message queue instead? It should be secure in the order that I won't lose messages and be able to log what is transferred. ...

javascript file upload size validation

Is there any way to check file size before uploading it using javascript. ...

Silverlight 4 : Uploading file to server

Hi Guys, Here is an easy one: I need a stable simple file uploader with a progress bar, I have found lots of fancy ones from the search. However, I need the community opinion on which ones to go with? Tutorial links would be appreciated. BOUNTY: I have a FileStream which I would like to upload to a server, below is a sample server se...

Best way to detect duplicate uploaded files in a Java Environment?

As part of a Java based web app, I'm going to be accepting uploaded .xls & .csv (and possibly other types of) files. Each file will be uniquely renamed with a combination of parameters and a timestamp. I'd like to be able to identify any duplicate files. By duplicate I mean, the exact same file regardless of the name. Ideally, I'd lik...

increasing upload speed (multipart POST)

I have a phone application and I use multipart POST to upload multiple files. Is there a way to increase the uploading speed ? e.g. can multithreading the upload process increase the upload speed, is there any other strategy? can anyone refer me to any networks research regarding this area? If I switch from multipart POST to opening a d...

PHP Upload file with additional information

I've got a website where I want to allow a trusted (;)) user to upload a file. In addition I want to allow the user to place a note with this file. So: HTML: <form name="uploadform" id="uploadform" action="handleRequest.php" enctype="multipart/form-data" method="post"> <input id="note" type="text" value="This File is interesting!"/> <...