upload

How would I implement an upload by email service for my photo sharing website?

I have a photo sharing website in development and want to be able to allow users to add photos and video by email attachment. I have email addresses for the site (hosted with goDaddy). I also have a LAMP CentOS application server running on Amazon Web Services EC2 that processes files uploaded via my web-based uploads page, so would like...

how to preview an image before upload in various browsers

I want to show preview of an image before it is uploaded. I have found a partial solution that works for ie6 and firefox, and havent yet tested it in ie7 or ie8. But i want a solution that works in safari, ie7 and ie8 as well. Here is the solution obtained by combining the ie6 and firefox solution: function preview(what) { if(jQuery.bro...

SVN FTP Upload with multiple FTP accounts

We have multiple ftp accounts for each website and recently have set up the folder with all the websites inside of a SVN Repository. What would be the best approach to set it up so it would upload on commit to the respective ftp account based on it's folder? ...

FCKeditor Upload feature not working, no error

Using FCKeditor (2.6.5) When I use the upload feature it acts as if it has worked (no errors) but does not upload a file. I can view other files in the upload folder with the file manager that I ftp in and can also create folders with fck. Any thoughts? ...

Buffer cannot be Null Paramter:Buffer

Hi all, I am working on an image upload from iphone to an C# web service. Here is the iPhone code NSString *soapMessage=[NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>" "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:so...

How can I create my ASP.NET MVC controller actions so they accept Files?

I've been working all weekend on a Messaging system for my website so users can send and receive messages on my site internally. I have my table schemas worked out, and right now I can send basic messages to different users. Now, I'm working on the attachments portion. How can I create my action methods so that they accept Files? Ide...

Php upload file

The code looks like this: html <form action="contact.php" method="post" enctype="multipart/form-data" onsubmit="return Validare();"> <input type="text" name="nume" value="Nume" class="contact" id="Nume" onclick="if(this.value=='Nume')this.value='';" onblur="if(this.value.replace(/^\s+|\s+$/g,'')=='')this.value='Nume'" /><font colo...

Uploading & extracting archive (zip, rar, targz, tarbz) automatically - security issue?

I'd like to create following functionality for my web-based application: user uploads an archive file (zip/rar/tar.gz/tar.bz etc) (content - several image files) archive is automatically extracted after upload images are shown in the HTML list (whatever) Are there any security issues involved with extraction process? E.g. possibility...

Ajax file upload

Hi, I have a form that upload a file, I would process the file inline with ajax but I don't know how I can get the data with ajax. In my script I use this method: $.ajax( { type: "POST", url: "upload.php", data: ({ file : '???' }), success: function(...

Is it theoretically impossible to get the size of a file that is going to be uploaded using Javascript?

How about <script language="JavaScript"> function A() { var oas = new ActiveXObject("Scripting.FileSystemObject"); var d = document.a.b.value; var e = oas.getFile(d); var f = e.size; var mb=f/(1024); alert(mb + "kilo bytes"); } </script> ...

File upload PHP problem

Hi there, Got this working $i = 0; foreach ($_FILES["image"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) { $tmp_name = $_FILES["image"]["tmp_name"][$key]; $image_name = $_FILES["image"]["name"][$key]; $image.$i = move_uploaded_file($tmp_name, "uploads/$image_name"); $i ++; } } I cant seem to get the...

C# - I cannot reference HttpPostedFileBase

I am using MVC .NET in a distributed environment with CSLA and I can reference HttpPostedFileBase from one of my web layers (eg Website.MVC), but I cannot reference HttpPostedFileBase from a separate layer (lets call it OtherLayer.Web). Any idea on what I need to do to be able to call HttpPostedFileBase ? I am able to use HttpPostedFi...

How to create an instance of an uploaded file programmatically in rails

I want to create an instance of "uploaded_file = ActionController::UploadedTempfile" from a File.new("path/to/file"), and then go on to do processing on "uploaded_file" like so: uploaded_file = ActionController::UploadedTempfile.new(File.new "path/to/file"). But for everything to work correctly, I need to set it so that uploaded_file...

Is it possible to upload a whole folder instead of multiple files using Javascript?

Is it possible to upload a whole folder instead of multiple files using Javascript? If so, what is the approach. If there is no straighforward approach, is there any workaround to achieve the same? I have always been curious about this topic. Any insights will help. ...

PHP image file upload uppecase extension problem.

Hi, I've a php script to deal with uploaded images. it works fine if i upload a file like file.jpg. But i got trouble if i try to upload file.JPG. Even if its the same file renamed. The code: if(isset($_FILES["arq"])){ @getimagesize($_FILES['arq']['tmp_name']) or $err=5; ($_FILES['arq']['error']==0) or $err=$_FILES['arq']['error...

python post large files to django

I am trying to find the best way (most efficient way) to post large files from a python application to a Django server. If I rely on raw_post_data on the Django side then all the content needs to be in RAM before I can read it which doesn't seem efficient at all if the file received is 100s of megs. Is it better to use the file uploads...

how to process image efficiently after upload

Hi, this is for user avatar and users photo albums. I have gotten upload working but i need some guidelines on: when to do the following steps: image resize and update database with image info. The upload is handled by a simple cgi script on the front-end server instead of the main app server behind it in order to avoid to tie up the m...

APC vs pecl uploadprogress

In the Status Report page in drupal, i usually find this message (on fresh installation): Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC. But i never understood why its preferred the PECL ...

upload image from iphone to the server folder

hi expert, i found few snippet from online to upload image from iphone to the server folder, its showing to use server side scripting eg. use php at server side if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "Uploaded!"; }else{ echo "Not Uploaded!"; } /> is it any possibilites to upload image...

php move_uploaded_file not working on Windows 7 only

I've got a project that I am setting up file uploads for. The project is in Zend, but I am using PHP's $_FILES array and move_uploaded_file to save the files. This was working perfectly on my Windows Vista computer but won't save the file on Windows 7. It creates a new folder for every upload no problem, but won't save the file and ...