file-upload

Error when uploading picture to site, why?

I am getting an Access to the path '[path]' is denied. This site is hosted by Godaddy. How can I open up the path "images/profiles" to allow the site to write to that path? thanks ...

Multiple File Upload asp.net mvc

is it possible to be able Multiple select files when make browse file? any solution , may be flash. so on form one field type="file" but with it can be upload more then one file i know that can be add on form more then one file field ...

asp:FileUpload not working in UpdatePanel

asp:FileUpload control is not working in update panel in ascx control. Why? any work around. <span dir="ltr"> <asp:FileUpload ID="InputFile" runat="server" class="ms-fileinput" size="35" /> </span> and also I added <Triggers> <asp:PostBackTrigger ControlID="btnOK" /> </Triggers> Still it is not working. ...

What's a good image hosting site with an API to allow me upload images from my website?

I'm looking for an image hosting website that'll allow me to upload images onto their servers from my own website using an API. I like Imgur.com's API but I'm looking for alternatives. ...

How to upload files in opensocial 0.9 to an appserver?

Is it possible to upload files in an opensocial app to a remote appserver? I think of a scenario using gadgets.io.makeRequest with the method set to gadgets.io.MethodType.POST and pass a file input to the gadgets.io.RequestParameters.POST_DATA. ...

larger file upload problem with php

I need to upload a csv file to a server. works fine for smaller files but when the file is 3-6 meg its not working. $allowedExtensions = array("csv"); foreach ($_FILES as $file) { if ($file['tmp_name'] > '') { if (!in_array(end(explode(".", strtolower($file['name']))), $allowedExtensions)) { ...

Can I attach data gathered by a form to a file that is being uploaded?

I need customers to upload files to my website and I want to gather their name or company name and attach it to the file name or create a folder on the server with that as the name so we can keep the files organized. Using PHP to upload file PHP:>> if(isset($_POST['submit'])){ $target = "upload/"; $file_name = $_FILES['file']['...

php upload file function

I am trying to write a script which uploads a file via a html form. When I click submit nothing happens. file: upload_form.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type...

What design considerations should one take to receive text and multiple attachments via web?

I am developing a web application to accept a bunch of text and attachments (1 or more) via email, web and other methods. I am planning to build a single interface, mostly a web service to accept this content. What design considerations should I make? I am building the app using ASP.NET MVC 2. Should the attachments be saved to disk ...

Why file upload error codes in php miss number '5'?

I am writing a custom error handling/reporting function for php file upload and I noticed that the error codes returned is one of numbers 0 to 8 except 5. Is this a typo in the source I am using or is it really this way? And if it is so, I am curious why they have skipped number '5'. Thanks. Edit In response to Pekka here are the erro...

Magento "File was not uploaded"

I'm currently using the magento admin interface, trying to upload an image in the "manage products" and I get the error "file was not uploaded" after I browse the file and click "upload file". I've looked on other forums and the main solution I saw were to make sure that php.ini has the following lines... magic_quotes_gpc = off short_o...

[Concept] How does unlink() find the file to delete?

My app has a 'Photo' field to store URL. It uses sfWidgetFormInputFileEditable for the widget schema. To delete the old image when a new image is uploaded, I use unlink before setting the value in the over-ridden setter and it works!!! if (file_exists($this->_get('photo'))) unlink($this->_get('photo')); Photos are stored in uploa...

Flash/Javascript upload in spite of same origin policy

Can one upload files to a domain other than the domain a script originates from? For example, suppose you're hosting files on www.example.com, and you want to upload files to uploads.example.com, would the following script violate the same origin policy (using uploadify): <!-- from http://www.example.com/upload.html --> <input id="file...

FileUpload control event

I want to know how to raise an event for fileupload control.... In my project, as soon as I select a file(Image) it should show FILENAME,EXTENSION & SIZE in the labels given below. Pls reply me.... Thanks in advance. ...

PHP photo gallery with multiple upload form

Hi everyone, I am trying to develop a PHP driven gallery with a form that has at least four file upload boxes, each with its own title and caption. I have been using php.upload.class to process uploaded photos but not sure how I would go about handling each individual upload while preserving its details (title, caption). Is there a pra...

File upload progress

I've been trying to track the progress of a file upload but keep on ending up at dead ends (uploading from a C# application not a webpage). I tried using the WebClient as such: class Program { static volatile bool busy = true; static void Main(string[] args) { WebClient client = new WebClient(); // Add some...

How to upload particular file types?

Hi all, I am using ASP.NEt MVC . I want to upload .zip files for which I am using html input file upload control on my view. I want only .zip files to be uploaded. Is there any way or attribute to specify and achieve this? thanks, kapil ...

JavaFX: File upload to REST service / servlet fails because of missing boundary

I'm trying to upload a file using JavaFX using the HttpRequest. For this purpose I have written the following function. function uploadFile(inputFile : File) : Void { // check file if (inputFile == null or not(inputFile.exists()) or inputFile.isDirectory()) { return; } def httpRequest : HttpRequest = HttpRequ...

File upload with Sinatra.

I am trying to be able to upload files with Sinatra. I have the code here, but I'm getting the error "method file_hash does not exist" (see /lib/mvc/helpers/helpers.rb). What is going on here? Is there some dependency I'm missing. ...

What API to use for uploading images to a Rails based website from an iPhone application?

Looking at using either ObjectiveResource or ASIHTTPRequest ... Which is superior for uploading images? Or is there a better option??? Are there any examples of using either or both to upload images (or any other binary content)? Thanks ...