file-upload

Implementing a runtime Look Up Table in C#

Hey all, I'm currently working on a robot interface GUI, using C#. The robot has two sensors, and two powered wheels. I need to let the user the option to load a Look Up Table (LUT) during runtime, one for each sensor, that will tell the robot what to do according to the sensor's reading. I think the best way to do it is using a .csv fil...

Choose a local file w/o uploading the chosen file

I am making a simple development tool for myself using PHP on my local development server. I would like a way to have a simple file-chooser to select a file without uploading it, but just retaining the file path. This is useful, because I will be the only one using the tool, and so PHP will have access to the chosen file without having ...

Uploadin Image - Objective C

Hi, i have this code the i find on youtube xD my cuestion is , how do i add an extra parameter NSData *imageData = UIImageJPEGRepresentation(imagen.image,0.0); NSString *urlString = @"http://urlexample.com/upload.php"; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setURL:[NSURL URLWithStri...

Start SharePoint workflow only with new file versions

I am trying to create a workflow to send an e-mail whenever a new version of a file is uploaded to a Document Library. The Document Library has lots of fields that, if updated, will create a new version of the ListItem, but I don't want to start the workflow for this cases. Only when a new version of the document is uploaded (including...

Servlet File Upload Memory Consumption

Hi, I'm using a servlet to do a multi fileupload (using apache commons fileupload to help). A portion of my code is posted below. My problem is that if I upload several files at once, the memory consumption of the app server jumps rather drastically. This is probably OK if it were only until the file upload is finished, but the app s...

How to pass a value to an ajaxUpload function?

This is my Html code and I'm trying to pass my id(test1) to fileUp function. It only works when I type 'test1' and stops working when I'm trying to pass a variable. Please let me know if there is a way to overcome this problem. <a id='test1' href="#" onclick="fileUp(1, 'test1')">Upload Your file</a> function fileUp(id,nameTest){ va...

Richfaces fileupload - perform name check on 'add'

Hi, I would like to perform a check on the name of a file being uploaded via richfaces fileupload component. I would like to check this as soon as the user selects the file. A file with a wrong name, should not appear in the list, and an alert() should be called specifying the filename was not correct. Is there a way to check the add e...

ContentType issue with commons-upload and httpcomponent client

Hi, I am trying to develop a Http client which uploads a file with httpcomponents: HttpPost httppost = new HttpPost(myURL); httppost.setHeader("Content-type", "multipart/form-data; boundary=stackoverflow"); httppost.setHeader("Accept", "text/xml"); MultipartEntity reqEntity = new multipartEntity( HttpMultipartMode.BROWSE...

upload file into iphone app via ftp

Hi all! I wish upload a file into my iphone app via ftp ( wifi connection on iphone) like some program as airsharing or iFiles.. which are the first steps to do this?? thanks in advance ...

PHP: How to get creation date from uploaded file?

Problem: I want to determine the original file creation time from a file uploaded to my server via PHP. My understanding is that the file is copied from the client to a temporary file on my server, which then is referenced in the $_FILES var. The temporary file is of course of no use because it was just created. Is there any way I coul...

Restrict allowed file upload types PHP

Right now I have a function which takes my uploaded file, checks the extension, and if it matches an array of valid extensions it's processed. It's a contact list importer. What I need to figure out is how to be sure that file (in this case a .csv) is actually what it says it is (ex. not an excel file that just got renamed as a .csv). ...

File upload from standalone client

Is is applicable to use Apache FileUpload lib to to upload files to Glassfish v2 server using standalone client? If yes, what are the differences for this purpose? ...

What is the best way to load balance PHP

SO i am in the process of setting up a load balanced configuration for our web application with nginx. I would most probably go with sticky sessions to avoid session issues on the load balanced setup or maybe even go with a database session handler. However there are 2 concerns that i have right now: 1 : When deploying from SVN ( we us...

File upload using HTML file type.

I want to upload a file on my aspx page. I am using <form id="frmId" method="post" enctype="Multipart/form-data"> <input type="file" id="file1"/> <input type="submit" id="btnsubmit"/> </form> and in code behind I am trying to get this file. Its not letting me to get the file until I use server side input file control. I don't want to...

Struts: Upload a file with progress bar

Hi, i want to upload files with Struts using the org.apache.struts.upload.FormFile but i would like to put a progress bar (like the gmail uploads forms or some like that), to upload the file (the files are big like 100Mb so the user must see what's going with the application). How i can do it? Regards :) ...

Should I be concerned with infected zip files?

I'm writing a ASP.NET application to process user submitted zip files and limiting my extraction of files from it to only the extensions I want. I've heard of infected zip files attached to emails and I was wondering if I should be concerned about extracting data from infected zip files in my application. I don't plan on executing the ...

AJAX file upload

I have a control for uploading an image and above it is an image control. When User clicks 'Upload' button, image turns to an animated image displaying 'WAIT' message, after the image is uploaded, the image source changes to that image. I want to do this using simple AJAX, JAVASCRIPT (xmlHTTP objects) , ASP.NET, VB.NET. Can anyone help m...

Accessing contents of a file in a web-application without uploading.

As far as I can tell, it is impossible to access the content of files on the user's computer in a web application without first uploading to the server, then re-downloading to user, unless some sort of plug-in is used. (Flash, etc.) Ideally, the user would upload the file directly to localstorage and then scripts would have a chance to p...

How to show progress bar in PHP where i have to upload the file size of of 100MB? without APC

How to show progress bar in PHP where i have to upload the file size of of 100MB? I cannot have APC installed. I am allowed to do so.. Help me out to get it done... P.S > I DO NOT HAVE DEDICATED SERVER HENCE CANNOT USE APC We have PHP 5.2+ ...

Zend Image upload and generating thumbnails on fly

Hi there, I am a php programmer, but new to zend framework. I want to upload image, create medium and small(thubmnail) image on fly, I passed a couple of hours searching for a php library [ compatible with zend ] that can make my tasks easy. I dont want to write the code that already exists. thanks for any help. I want also to know w...