upload

Uploading multiple files with Django

How do I upload multiple files with Django? ...

Is this fileuploading script safe?

Hi is this totally safe or not? I would like a totally safe fileuploading script for my new project. Thanks in advice. Here is the one i found: <?php if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 20000)) { if ($_...

HTML/CSS - Using a image for input type=file

Hi there! How do use this image: http://h899310.devhost.se/proxy/newProxy/uplfile.png Instead of the regular: <input type="file" /> ...

Read header files and do something before full photo upload happens

I am passing a GUID as a header and a photo as a body to a php file. The GUID is used to authenticate. If it's not valid, I want to end the call and I do this using die("GUID was expired"); This works fine, but my issue is that the whole photo is uploading before that gets called. This is bad for the user. I want to read the header a...

Automagically Minify CSS and Javascript on Upload

Hey guys, Does anyone know of a good way to automatically run certain file types through a processing script on upload? I'm trying to accomplish automatically minifying CSS and Javascript when I upload them to the server, keeping a nice, human-readable version on the local side while keeping a minified one on the server. I'm currently u...

Upload files using Google Gears and ASP.NET or PHP

Trying to upload files using Google Gears and ASP.NET... I assume you can as the HttpRequest API accepts blobs. I have FileUpload control in the page. <asp:FileUpload runat="server" ID="File1" /> Then the JavaScript var file1 = document.getElementById("<%# File1.ClientID %>"); var desktop = google.gears.factory.create('beta.desktop'...

Problem using Uploadify plugin(JQuery) with ASP.Net

Hello guys... I have a Masterpage like that : ... <head id="Head1" runat="server"> <asp:ContentPlaceHolder ID="HeadContent" runat="server" /> </head> ... And in my Aspx page : ... <asp:Content ID="HeadContentFromPage" ContentPlaceHolderID="HeadContent" runat="server"> <link rel="Stylesheet" type="text/css" href="uploadify.cs...

NSURLConnection "lost network connection" error ?

Hello, I am developing an app that will upload the image from the iphone to a server. In server side there is a php program to handle the uploaded image. I am using the NSURLConnection with the Post method and have set the post body of the request. When I upload the image, I could see the image uploaded 3 times(in the server), but after...

ASP.NET MVC Uploading with Extra Data and Jquery

I am following an example from another question for uploading with jQuery. http://aspzone.com/tech/jquery-file-upload-in-asp-net-mvc-without-using-flash/ I would like to extend this a bit to add more data to the upload though, through other form elements. Any idea how this could be done? ...

file upload security, htaccess, and changing extensions

Hello, all. I'm pretty new to web development, so please be gentle. Apologies if I'm posting a topic that's already been discussed; I searched but couldn't find quite what I was looking for in another thread. Background: I have a site that allows file uploads, but once uploaded, they won't need to be viewed by anyone but me. I've ...

File input box upload image to database

I have a field of type image in my database which is mapped as binary in my model (ADO.NET Entity Framework). But somehow the image that I get from the input file box is not being passed to the object. I know this because I debuged my action and the object Language (the image I trying to upload to the database is a flag) has the propert...

Secure File Upload in Ruby On Rails

I built a photo gallery which uses Paperclip and validates the content-type using validates_attachment_content_type. The application runs on a shared host with Passenger. Is it possible to bypass the validation and run malicious scripts from the public/pictures directory? If so, is there anything that I can do to avoid evil scripts fro...

Is there any way to Upload Video Files using PHP ?

I want to upload and store video files to my server using PHP. Could any one please provide me the code? Please keep in mind that these files are generally larger than 200 MB. ...

onComplete and onCompleteAll events failing to fire when using Uploadify

Hi I have been using uploadify (www.uploadify.com) to upload images to my website, and it works beautifully until you try to expand on it a little. Im trying to get it to remove a queued up file from the list once that file has been uploaded. To do this, you would initialize uploadify as such: $("#fileUpload").uploadify({ ...

PHP - Upload 6 Images (MAX 1mb per file)

Hi I was wondering what the best way to send 6 'file' inputs to a php page would be... and how to process them, i used this website to understand uploading one file PHP Tutorial - File Uplaod Also, i want to name each of the 6 images with a time stamp for example below... 00000000 00000001 00000002 00000003 00000004 00000005 Basical...

Automatically trimming a mp3 in PHP

Are there any ways to automatically trim an MP3 uploaded to a website to 30 seconds (or some other length) in PHP? If not, is there any good 3rd party services that could be integrated (transparently to the user) to achieve the same effect? Thanks. ...

How can we do Background File Upload in iphone ?

Hi like qik.com , ustream.com , I hope to know how to upload file in background via iPhone SDK 3.0 . Pls let me know . Thanks ! ...

Python App Engine uploaded image content-type

I know that I can accept image uploads by having a form that POSTs to App Engine like so: <form action="/upload_received" enctype="multipart/form-data" method="post"> <div><input type="file" name="img"/></div> <div><input type="submit" value="Upload Image"></div> </form> Then in the Python code I can do something like image = self.re...

WebClient.UploadFile() throws exception on some binary files

I am using the WebClient.UploadFile() method to post files to a service for processing. The file contains an XML document with a compressed, b64-encoded content element in it. For some files (currently 1), the UploadFile throws an exception, indicating that the underlying connection was closed. The innermost exception on socket level giv...

Upload image to Flickr using Actionscript 2.0

Hi, I have a requirement of uploading an image to flickr through an application in Flash AS 2.0. I am not clear with the authentication process. Could anyone help me out with this? Thanks in advance. ...