file-upload

Django view for storing files from request

I'm building a django application that will be operated via desktop application. Key feature for now is sending/storing files. Basically I need a django view with URL on which I can send files with POST and this view will store the files. Currently I have something like this : def upload(request): for key, file in request.FILES.item...

Help Refactoring working method To Load BitMap (Instead of File) To PHP Server ..

Hi, This works great for files. I marked the location needing refactoring to get it to work with a bitmap. I can't seem to find a compatible ContentBody for .addPart. The problem I am trying to solve is that I already have the image in an ImageView within an Activity, so rather than read it again from the SD cara, I want to pass it to...

File uploading in IE with umlauts in filename

I have this file upload and it works in Firefox fine, but when I upload file n IE and filename has umlauts, then filename is corrupted. After file is uploaded I echo filename and filename is corrupted like in my example. Example: ä.png is converted to ä.png ...

How can I fix my android photo upload to send larger streams of data

I have an android app that is attempting to upload photos to a web server via API interface. The method works fine as long as the image sizes are not too big (fails somewhere around 1280x800) Heres the code that will work will smaller images but fails with larger ones. Any suggestions? public void uploadPhoto(FileInputStream fileInputSt...

Create File Upload control using HTML controls

I am facing an issue with asp.net file upload control inside update panel. That is FileUploadControl.HasFile always return "true". Can we create a "file upload" control (which has "browse button") using html controls...and use it inside asp.net 2.0 ??? ...

Post filename in label from Fileupload control - ASP.NET 4.0 C#

Is there anyway to run an event after i selected a file in a Fileupload control, so i can set Label1.Text = FileUpload.FileName; Or if any of you got another idea that would be awesome too(maybe some javascript)! :) ...

WCF file upload from desktop application end to end tutorial?

Does anyone know of an end to end tutorial/example showing how to upload binaries to a WCF host from say a desktop application (probably Silverlight or WPF but it most likely doesn't matter). ...

Form uploading files to different server without following

How can I send a file in django to a different server without user being redirected to the server ? So all goes to rewriting this simple php function in django : $filename = 'C:/tmp/myphoto.jpg'; $handler = 'http://www.example.com/upload.php'; $field = 'image'; $res = send_file($filename, $handler, $field); if ($res) { echo 'do...

How to maintain a persistent http connection in php?

hi, i've a little web interface which uploads a file on a server and then dumps that file in oracle db. but there are about 7 million records in it and web server get time out while reading and dumping that file. can someone please tell me how can i keep that session alive so that it doesn't get timeout when uploading, reading and dump...

File upload using attachement_fu in rails

Hi, I want to know how to upload files(other than images) using attachement_fu plugin in rails. I successfully uploaded images using attachement_fu, but wasn't able to upload other kinds of files. ...

Django: Reading FileField Contents Immediately After Save

I have a model form with a file field on it. I have a post_save signal attached to the model so that I can then pass the uploaded file on to a 3rd-party via a web service (using Suds). The web service call is dying when I try to pass it the file contents: it throws "UnicodeDecodeError: 'ascii' codec can't decode byte . . . " (much like i...

How to Upload a Video?

I want to know how to upload a video like on youtube, vimeo etc to get a final flash video. I'm using PHP. I have this HTML form: <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="upload_video" /> </form> So what should I do if the user has uploaded a video for example in .mov or othe...

How to write component to upload files directly to Windows Azure Blobs?

I've been experimenting with Windows Azure Blob storage using the samples using Silverlight. I was wondering if it's possible to write a file upload component in Flash instead of Silverlight, since the former is installed almost everywere. I've never programmed in Action Script but I have a solid background in C# so that must not be ha...

Can CFFILE support simultaneous writes to the file system?

We have written a feature that allows our users to upload a file to a nas device using UNC path. The feature has not been stressed tested and I'm not 100% convinced CFFILE can handle the load. Does cffile use multi-threading to perform writes to the file system and what kind of load can cffile support? ...

$_Files[] array only showing first file uploaded

I currently have a form with a single file upload input on it. the original form input I've tried <input type="file" name="userFile[]" /> and <input type="file" name="userFile1" /> I also have a link to generate more input fields using If have tried methods of: a) counter = 1; function addInput(){ counter ++; $('#divName').app...

How to upload files in flex using PyAMF or PhpAMF? client side, and very little server side help needed.

Hy! I need to upload a group of images using flex with robotlegs. I need a progress bar to work when image is uploading. It might upload 1 image or more at the time. I want to know if uploading byteArray to server and then save the image is too heavy for the server. In the server side I have a method that is made by pyamf, and looks ...

Using HTML5 file uploads with AJAX and jQuery

Admittedly, there are similar questions lying around on SO. But it seems none quite meet my requirements. Here is what I'm looking to do: Upload an entire form of data, one piece of which is a single file Work with Codeigniter's file upload library Up until here, all is well. The data gets in my database as I need it. Good good. But ...

Ruby on Rails Image Upload/Text Overlay

I'm new to using ruby on rails and was looking for help with image upload/manipulation. The extend of my RoR experience is the rails tutorial blog project, but I've used Java and PHP for numerous other projects. I'm trying to create a simple app where the user uploads a file, enters some text, and the text is overlayed on the supplied ...

php file upload

Hi anyone can explain file upload process in PHP. I mean what happens in backend internally. like saving with temp name, moving to upload folder etc. I want it's step by step working. Thanks ...

cURL upload file to asp.net site ?

In linux machine,Using cURL, I'm trying to upload a text file to a asp.net site. I'm new to cURL. My Source code... Upload.aspx <%@ Page Language="C#" AutoEventWireUp="false" CodeFile="Upload.aspx.cs" Inherits="Upload" EnableViewStateMac="false" EnableSessionState="false" EnableViewState="false" %> <html> <head> </head> <body>...