upload

Getting post vars with swf-upload

I am using swf-upload to allow users to upload images quickly. I need them to be able to select which galleries they want them to appear in so I have added extra controls to the form - but they are never passed in GET or POST to the upload.php catcher. I think 'addPostParam' is what I need to set, but am not entirely sure where or how ...

Web Development: How can I allow a user to upload files directly to my CDN (Cachefly)?

I have a PHP web-application that allows users to upload images to my web site. I'm doing this using a simply HTML <form enctype="multipart/form-data"> However, instead of having those images uploaded to my web server - I would to have those images uploaded directly to my CDN (Cachefly - which is another server). Is this possible ... t...

Uploading files using HTML file input on iphone

I am creating a web form for uploading small movie clips to a HTTP server. However, while my HTML file input control gets shown on an ipod touch, the button is completely disabled and I cannot click it to upload files. What do I have to do to use the input control to upload files (e.g. movie clips or pictures) to my HTTP server. My page...

Is setting the uploads folder 777 permision secure?

I have seen a lot of upload forms hacked, and some had some really good security checks of the file being uploaded (at least I think so), but still somebody managed to upload a PHP file. I was wondering: is there is a way to upload a file in the uploads folder that has 777 permissions? I am thinking of using HTTP PUT. ...

Type 'System.Web.HttpRequest' cannot be serialized

Hi There. I am trying to design an Picture Upload feature into a web site. I am using ASP.NET 3.5, C#, and WCF. I have been asked to accomplish the following: 1) Make the Uploader a Web Service 2) Return progress updates to the user as files are uploaded. 3) Log other relevant user-selected options in the database. So, I have s...

JQuery File upload dialog not returning back to dialog from MVC Controller action

I have an ASP.NET MVC app which uses a jquery ui dialog for file upload. Everything is working fine with loading the dialog with the correct content and displaying the dialog on my click event however my issue is that after I process the action in my controller action method I don't return back to my dialog as I would expect an ajax like...

How to automate/simplify this content submission scenario?

I'm trying to think a strategy to automate or simplify content submission. A submission is by default done through a form and counts as one entry (some text fields + a random number of file upload fields). Through a web interface, I can imagine this as a regular form. But how can I automate the process to simplify it? I don't have a pa...

AppEngine GeoPt Data Upload

I'm writing a GAE app in Java and only using Python for the data upload. I'm trying to import a CSV file that looks like this: POSTAL_CODE_ID,PostalCode,City,Province,ProvinceCode,CityType,Latitude,Longitude 1,A0E2Z0,Monkstown,Newfoundland,NL,D,47.150300000000001,-55.299500000000002 I was able to import this file in my datastore if I ...

accessing local file from php

I'm trying to gain access to a file on a client computer so that i can then later attach it to an outgoing email (resume.pdf) Ive found a few clips of code but I'm having trouble getting it to work for me. the code below seems to demonstrate all the things ill need to gather about my file but i can't quiet seem to get it to work yet. ...

Corrupt image file after uploading it using ftp command from linux, with type ASCII

I have try to transfer a image file using ftp command in linux, from linux platform to windows platform, doing like this: ftp cs.unitbv.ro ascii get test.jpg After this, when I open the image it says that the file is corrupted. If somebody know how to repair the image file let me know. Thanks ...

How can I get a file's upload size using simple Javascript?

I have upload file functionality on one of the page. I check for the extension of the file using JavaScript. Now i want to restrict the user from uploading file greater than 1 MB. Is there any way i can check the file upload size using JavaScript. My code currently look like this: <script language="JavaScript"> function validate() { ...

File upload in Rails- data is an object, how do I return it in my view?

When doing an upload in my Rails project, the database stores --- !ruby/object:File content_type: application/octet-stream original_path: my.numbers how do I get it to return my.numbers in my view only? Thanks a bunch! Marco ps. I don't want to use attachment_fu or any other plugin preferably. ...

How can I upload files to django from within AS3 Flash?

I need to build a file uploader in AS3 that is capable of uploading files into an authenticated django view which contains a form with a file upload input. I have been working on this for an entire 7 days, all day. After much digging, I have discovered that Adobe, in their infinite wisdom has disabled cookie headers from being sent...

How to upload a image from FLEX into ASP.NET MVC?

I have a flex app which takes a picture from webcam and now I need to post it to a MVC controller backend. Any ideas about how to do this? ...

UploadRequest.Item method doesnt work into textareas using TinyMCE

Hi, that's all in the title. I've got a Curriculum Vitae form which has a textarea using TinyMCE and a file upload input, and the script is in classic ASP. <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "simple" }); </script> <textarea name="messaggio" id="messaggio"></text...

Image.FromStream(PostedFile.InputStream) Fails. (Parameter is not valid.) (AsyncFileUpload))

I'm using an AsyncFileUpload (AJAX Toolkit) to upload images. I have a Button which handle the image resizing. This have worked fine for some time, but not anymore... protected void BtnUploadImage_Click(object sender, EventArgs e) { var imageFileNameRegEx = new Regex(@"(.*?)\.(jpg|jpeg|png|gif)$", RegexOptions.IgnoreCase); ...

HTTP Data Transfers

I am working on a method to transfer files using XmlHttp in VBS. The generic approach, set HTTP = WScript.CreateObject("Microsoft.XMLHTTP") Set Streamer = CreateObject("ADODB.Stream") Streamer.Type = 1' set to binary Streamer.Open Streamer.LoadFromFile(FSO.GetAbsolutePathName(Filename)) HTTP.open "POST", FinalUrl, true HT...

need to explode a text/csv file uploaded from form

When i use an html form to post a file, how do i address that file's contents in php? will this work? $data = $_POST['file']; $pre = explode(";;;", $data); the file is a text file btw UPDATE the csv is field enclosed with ::: and lines terminated by ;;;. How can i load this into a variable without breaking the php script, which is w...

Amazon S3 - Posting form using html and PHP content-disposition problem

I am having trouble putting files onto my S3 account using http post. Everything is working great, but I want the key and filename to be different. I'm specifying the key just fine and my policy doc is working fine too. I include this line in my policy doc ["starts-with", "$Content-Disposition", ""] and this is the input for my Conten...

Upload file without "Browse"

I'm planning to write a web application (.net probably) that will need to analyze images found on users local machine. The trivial solution would be letting the user browse and select the file to be uploaded. I want to automate this process as possible and since I should know the exact location of the image file on the local disk (I'm ...