upload

How do I test a file upload in rails?

I have a controller which is responsible for accepting JSON files and then processing the JSON files to do some user maintenance for our application. In user testing the file upload and processing works, but of course I would like to automate the process of testing the user maintenance in our testing. How can I upload a file to a control...

Problem uploading files greater than 10Mb in IE6

Hey. This code works in most browsers, and even partially in IE6. It uploads files less 10Mb (approximately), but not anything larger. The code specifies that those files are permitted. Also, note that it seems like the entire file seems to be transferred to the servers before disregarded. The website is at: www.mgxvideo.com/mgxcopy-...

Getting the name & extension of an uploaded file using python (google app engine)

I am using a form to upload files to the google app engine and store them in the datastore. l would also like to store the original file name and extension for presentation purposes. Is there a way of retrieving this data from the post sever side or can it only be gathered client side and sent as separate fields (e.g. http://www.tinyurl...

How to write a SQL Loader control file to load data into multiple tables

I have a data file with 3 different sets of information like this below: @@@08016995BUILD 12/15/04POSITION "AABPX ","76826309","M","L"," 1509.4340" ----More similar Records_------------------------- @@@08016995BUILD 12/15/04SECDESC "AABPX ","mf","AMERICAN AADVANTAGE BALA","NCED PLAN AHEAD "," "...

SWFUpload :Uploading other than Images

I want to put an Upload control in my ASP.NET ( Web form) page with progress bar.So I searched on the net and found that swFUpload is a nice option i can go with.so i downlaoded the samples from the site and checked it.In mozilla,Its working fine.But in IE (6.0) when i click on the Select images button,nothing happens. Can any one tell m...

Error while uploading a file from the c# code

Hi, I am uploading an excel sheet from the code. When I am trying it from local system, its working fine but after deploying the website into IIS, when I am trying to upload the file the following error is thrown : "Upload Error : Cannot access a closed file" Please help in this. Thanks Rupa ...

Determining iphone upload/download speed programatically

Hello, I was wondering if anyone has a neat solution to getting the iphones upload/download rates programitacally in order to be able to set upload chunk sizes and things of the like...Any input on this? Thanks ...

POST data from a text file (read by a desktop client) to an ASP .NET based server

I am developing a client-server application - the server being an ASP .NET web app. The client (a desktop app) needs to send data contained in a text file to my asp .net web app. Data would be approximately 100 KB, in multi-line textual form. What is the best approach to POST this data to the server, given that I need to do it once eve...

exposing files from a service through a rails application

Hi All, I have a rails application that generates open office files, and I have a service at another location that will convert these open office files to microsoft office files. I'd like to have a controller action that will send the open office file to the converter, then serve the returned microsoft office file to the user. how cou...

How can i save and upload the image in C# desktop application

How can i save and upload the image in C# desktop application ...

php function move_uploaded_file wont work on my online server but does on localhost

Hi I have been working on a upload file that works fine on localhost (windows) but wont work on my linux server I rent. I want it to move it to a subdir '/files' from where the file is. it gives the errors: Warning: move_uploaded_file(/home/taalhulp/domains/taalhulpmanager.nl/public_html/files/6) [function.move-uploaded-file]: failed ...

Jquery-upload-progress cross domain issue. Suspected GET request problem.

Hi, I am doing a site which submits a form to a different server. For upload progress tracking I use: for server side the NginxHttpUploadProgressModule und for client side - jquery-upload-progress. I have tested the setup by submitting the form to the same server and everything worked fine. Submitting to another server doesn't show the p...

Uploadify won't upload files to my php script!

I'm trying to get uploadify to send it's files to a php script but it comes back blank every time... i'm totally confused as sometimes it won't even attempt to upload the files. Form: <form action="upload.php?1" method="post" id="uploadForm" enctype="multipart/form-data"> <input type='file' name='uploadBox' id='uploadBox' /><br/> <inpu...

Sharepoint webpart upload file whitout using "runat server"

For uploading a file in sharepoint I use a webpart and an automatically generated form. the tag for the upload file: <input type="file" id="uploadfile" name="uploadfile" /> When I try to pick it up after posting, the file isn't accessible with the Request.Files attribute (Request.Files["uploadfile"]). (Request.Files looks like null o...

[PHP] - Don't allow > 2mb images

HI! How do i check if the users are trying to upload bigger than 2mb files? I would like to deny that and put an error message to the user who is trying to do that. I know it is something like this, but what shall i change the 50000 to to become 2mb? if ($_FILES['imagefile']['size'] > 50000 ) { die ("ERROR: Large File Size"); } ...

Downscale/resize?

Hey! How do i resize/downscale the images that gets uploaded with my upload script down to 350x100 if they are over 350x100? My script: $allowed_filetypes = array('.png','.PNG'); $filename = $_FILES['strUpload']['name']; $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); if(in_array($ext,$allowed_filetypes)) { ...

upload file in JSP - how to change a default path for the uploaded file

I have two jps pages to handle an upload of the single file. Here is a code for selecting a file: org.apache.commons.io.FilenameUtils, java.util.*, java.io.File, java.lang.Exception" %> ... <form name="uploadFile" method="POST" action="processUpload.jsp" enctype="multipart/form-data"> <input type="file" name="myfile"><br...

Django File Upload Handler Errors

In Django, I want to stop any file uploads that don't end in my designated extension as soon as they're received. To do this, I define a custom Upload Handler and write new_file to look something like this: def new_file(self, field_name, file_name, content_type, content_length, charset=None): basename, extension = os.path.splitext(file...

What is the function for moving local files in Symfony?

Example, move /var/www/1.jpg to /var/www/aaa/1.jpg ...

HTTP vs FTP upload

I am building a large website where members will be allowed to upload content (images, videos) up to 20MB of size (maybe a little less like 15MB, we haven't settled on a final upload limit yet but it will be somewhere between 10-25MB). My question is, should I go with HTTP or FTP upload in this case. Bear in mind that 80-90% of uploads ...