file-upload

php - Diferences between copy, rename and move_uploaded_file

Are there diferences when I use that functions? Why should I use one instead of the other one... Thank you. ...

jQuery AJAX post with fileupload

I have a functional page posting data to a Page WebMethod [WebMethod()] public static string sayHello(string pTest, string pText) { return pTest + " - " + pText; } which I call using this jQuery $(document).ready(function () { $("#sayHelloButton").click(function (event) { var name = $('#name').val(); var text = $('#text')...

Reasonable image upload file size on 3g

An app I'm working on allows users to submit photos from the iPhone to a website. I'm all set with resizing the image on the client and converting it to a jpeg. I'm wondering if there are any best practices, general experiences or statistics that can help lead to reasonable assumptions for a decent file size to target. I know 3g speeds ...

Send files from form directly to remote server

In my application I'm dealing with upload of really big image files. They will be stored on a remote server, so from what I was able to learn I need to write some custom Storage system (probably with the use of python's poster module). Because of the size I would like to send the files directly to media server without storing them in mem...

Is there an API / service for uploading assets from a web app?

I'm curious if a service exists that handles file uploads and provides a UI widget. Ideally it would work as such: They provide an embeddable and customizable file upload widget (upload progress, multiple files) with good cross browser / device compatibility. The upload widget detects file types and provides an optional UI for resizin...

500 Error when sending file from python to django

I've found a nice python module for sending data to remote servers via HTTP POST called poster. So I've wrote a simple view on my django app to receive and store data and then tried to send some file. Unfortunatelly even though I've set everything as it was shown in the instruction I'm getting Internal Server Error. Can anyone maybe see ...

Assign full file path of FileUpload in textbox control back to FileUpload on postback....

I have a FileUpload control in an UpdatePanel and when user select a file, the full file path will will be stored in a hiddenfield, and during postback, i would like to assign the full file path in the hiddenfield back to the FileUpload control textbox, possible to achieve that? ...

Problem with fileuploadcontrol in asp.net

i am using a file upload control. user can upload any files less than 5 mb. but fileupload controls goes to erropage if someone tried to upload larger files. after search in net about it i found that there is setting in web.config file. first i set maximum request length to 5MB. but if someone try to upload a larger file (> 5MB) it goes...

django : unique name for object within foreign-key set

I'm trying to upload files for an article model. Since an object can have multiple images, I'm using a foreign-key from file model to my article model. However, I want all the files to have unique titles. Herez the code snippet. class Article(models.Model): name = models.CharField(max_length=64) class Files(models.Model): titl...

How to upload a file in rails?

Hi, I'm new to rails. I want to know about file uploading process in rails. Can anyone please help me... Thanks, Althaf ...

How to attach local files to Drupal nodes

I need to attach video files to nodes in Drupal 6, yet the AJAX uploader fails (the dreaded HTTP error 0), and anything I tried to debug it didn't help (may be moving to Drupal 7 will, but that's still going to be some time). Is it possible to somehow upload the file to the server via FTP, and then simply attach it to a node, so that it ...

File Upload / The connection was reset

I am writing an upload handler (asp.net) to handle image uploads. The aim is to check the image type and content size before the entire file is uploaded. So I cannot use the Request object directly as doing so loads the entire file input stream. I therefore use the HttpWorkerRequest. However, I keep getting "The connection to the ser...

File upload multi-select

I'm not positive if this is even possible, but is there any way to enable a user to ctrl+click (ie, multi-select) files on a website? Screen shot of what I would like to be able to do via an upload tool, taken from just my standard file explorer: In case this is relevant, the back-end of the site is in C# and the front-end scriptin...

Is it really possible to POST files with python ?

So I'm struggling with this for a second day in a row and still nothing. Found few solutions on the internet but still I'm getting "Internal Server Error" when trying to send files with POST. The idea is as follows : I'm sending a file opened in python's shell to a django function on my server that will read and store the file there. I'v...

How do I upload a file with metadata using a REST web service?

I have a REST web service that currently exposes this URL: http://server/data/media where users can POST the following JSON: { "Name": "Test", "Latitude": 12.59817, "Longitude": 52.12873 } in order to create a new Media metadata. Now I need the ability to upload a file at the same time as the media metadata. What's the ...

How do I upload a zip file via HTTP post using VBA?

This question has been asked many times by others in some form or another but most remained unanswered or the given answer is "Use C#, duh!", which incidentally, is a non-answer. ;-) I want to upload a zip file to a web server via VBA. The server side code already exists and works well; it accepts zip files via manual form upload and do...

How do i provide chunked data Transfer in IE(Internet Explorer)

Hi all, I am Running a rails application and uploading some large file (more than 2 GB) am able to do it from google chorme but when i try to do it from IE or mozia am gettind page does not exit and some times IE restart .Someone advised me to enable chunked transfer support in IE... I would like to ...

POST'ing arrays in WebClient (C#/.net)

Hi guys, I've got a .net application that has a WebRequest that to a POST adds multiple times the same key, thus making it an array in the eyes of PHP, Java Servlets etc. I wanted to rewrite this to using WebClient, but if I call WebClient's QueryString.Add() with the same key multiple times, it just appends the new values, making a com...

Iterating Dynamic FileUpload Control Collection in Panel Control using ASP.NET C#

Hello everyone, I'm trying to get the values of dynamically generated FileUpload controls that I add to a Panel: <asp:Panel ID="pFileControls" runat="server"> </asp:Panel> I create the controls during a loop through a record set: foreach(DataRow dr in ds.Tables[0].Rows) { FileUpload fu = new FileUpload(); fu.ID = dr["SomeID"...

how to prevent curl from doing upload

There are many questions and guides on how to get cURL to DO file uploads, but what I'm asking today, is how to NOT get it to do that. According to the curl options docs on php.net, curl "knows" to attempt a file upload by when a param starts with "@" then the local file path This is all well and fine, but what do you do if you need to...