file-upload

Is there a way to speed up file uploads?

I understand that file upload speeds are limited by the upload speed of the internet connection among other things. Is it possible to use jquery or some other method to compress the file locally before upload and then upload a file to the server? Any other solutions? ...

C# Use WebClient.UploadFile(string, string) to upload to a Apache & PHP webserver

The C# WebClient.UploadFile(string, string) sample on MSDN shows how to make it work with an ASPX page handling the upload. However I have a Apache server with PHP set up to handle my subversion repos. I have very little web programming knowledge, but would like to know... Can my Apache/PHP web server handle a file from a c# client usin...

how can I add event to richfaces fileUpload "on clear"

there are clear, clear all buttons on richfaces fileUpload component. <rich:fileUpload id="quoteFile" tabindex="10" listHeight="80" maxFilesQuantity="1" onuploadcanceled="" clearControlLabel="" clearAllControlLabel="" acceptedTypes="xml" fileUploadListener="#{loadSaveQuotes.uploadListener}"> <a4j:support event="onuploadcance...

asp:FileUpload.FileBytes example in MSDN confusing

I was just going to use the FileUpload.FileBytes property but looking into the respective example in the MSDN library I'm confused about this part: int fileLen; // Get the length of the file. fileLen = FileUpload1.PostedFile.ContentLength; // Create a byte array to hold the contents of the file. byte[] input = new byte[fileLen - 1]; i...

FileUpload control postback problem

I'm having a FileUpload control on a aspx page inside a UpdatePanel with a button on click of which I want to set a label with the filename of the selected file. Here is the code I have: ASPX PAGE: <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="se...

How to display binary data in asp.net mvc

Hi, Been searching for days now, but I can't seem to get what I need. Here's the problem, I have a page where users can upload a file (.doc, .xls, .pdf, etc) and save it to db in binary format (still ok here), however, I need to be able to display the file (with the proper format) in a div tag which I can't figure out how to do. Not s...

How to best to cancel a Zend Form File Upload?

I am experimenting with uploading files in a Zend_Form using the Zend_Form_Element_File doing something like this in my form so that the actual upload can be handled by my controller (which in my case is to eventually do some custom file re-naming on the fly). $element = new Zend_Form_Element_File('Upload'); $element->setDestination(U...

file->getMimeType() always returns application/octet-stream with Zend Framework

hi people, my file form element is very simple: $this->archivo = new Zend_Form_Element_File('archivo'); $this->archivo->setLabel('Archivo:') ->setRequired(true) ->setDestination(UPLOAD_PATH) ->addValidator('Count', false, 1) ->addValidator('Size', false, MAX_FILE_SIZE) ->addValidator('Extension', ...

How do I deal with very large file-uploads in an Erlang web server?

So, lets say I'm writing a web server and I want to support "very large" file uploads. Lets further assume that I mean to do this via the standard multipart/form-data MIME type. I should say that I'm using erlang and that I plan to collect http packets as they are returned from erlang:decode_packet/2, but I do not want to actually coll...

Convert the uploaded files to specific file format which can not download

Hi, I have a problem regarding to prevent download and saving of uploaded files. My users can upload multiple files types like doc, pdf, ppt,etc.... This all file types are easily download if any one have url. So what is the better way to prevent the download of the file. Or i convert the uploaded files to some specific format which...

Upload to Sharepoint using FrontPage RPC

Hi, I am trying to upload documents with their metadata to sharepoint using the RPC method. well it is working fine except some type of files like docx, xlsx.. I don't get any errors or exceptions, they are(docx, xlsx.) uploaded to sharepoint correctly but without the associated metadata. How can i fix this problem? Below is the code i...

Handling file uploads in Drupal

I've been messing around a bit with various solutions to what I would see as a fairly common problem, but I've not yet been able to solve it in a satisfactory way. What I wish to achieve is some kind of functionality where a user can upload new files, or select existing files to reuse them. What I've been using so far is a combination...

Drag n drop from filesystem into a web application

Hi, I am investigating on a web framework/techno that allows to drag n drop files from the filesystem into a web application. The purpose is of course to upload those files into an application server. In Flex it seems to be not possible (although it works with AIR). I have found a way with Google Gears, but this force the user to insta...

ASP.Net file upload/browser component

I might end up having to build this, but it would be nice if there is a solution already... I need to add functionality to a client's web page to allow them to upload files, and then to view and download them. We also need some form of authentication mechanism to restrict who has access to which files. I have used Neat Upload in the p...

Resize an image with Paperclip [Rails]

The Paperclip plugin for Rails has a resize option that keeps the image in proportion. According to Ryan Bates' Paperclip Railscast, to make sure that option is on, you have to add a greater-than sign in the end of the size for the style you're looking to resize, as such: :styles => { :small => "160x160>" } I'm looking for Paperclip t...

Adobe Flex file uploader

Hi! I've been scouring the web to find a tutorial on how to implement a flex uploader, but didn't find any :( Some tutorials just give the code and doesn't explain how to use them(sorry, i'm a newbie to flex) can u geeks suggest some good tutorials? :) thanks. ...

Java - Commons-fileupload.jar - Problem

I am trying to upload a file using commons-fileupload-1.1.1.jar file (I know it is not the latest version but it comes with struts 1.3.10 so I am using the same). Now the problem is when I parse the request (HttpServletRequest) to get a List of FileItems, I am getting an empty list. DiskFileItemFactory factory = new DiskFileIte...

Rails uploaded file blank

Hi chaps, I'm trying to upload a file to the server using a HTTP multipart form in rails, and for some reason it's turning up blank at the other end. I can see it being received in the rails log thusly: Processing Admin::HeadlinesController#update (for 127.0.0.1 at 2010-03-08 12:26:13) [PUT] Parameters: {"commit"=>"Save changes", "act...

Off-site uploading

I need to somehow integrate off-site uploading onto my website, that is, so the uploading form itself is on my website but the file gets uploaded to a server somewhere else. I have experience in PHP file uploading and handling, but the files were all being transferred to the machine that held the form. This time I need it to upload dire...

How do I upload a file from a Java servlet to a location on a web server within Tomcat/webapps

How do I upload a file from a Java servlet to a location on a web server within Tomcat/webapps. I am using Commons upload. I have a location such as myserver:8080/myapp/mylocation where I want to put the files that are uploaded. I tried using getServletContext().getRealPath("/"); to find where I am and then appended that with mylocatio...