file-upload

Upload file on SSL Page

I have an html input control () on an aspx page that is secured via SSL. Just as a sanity check I want to make sure that the upload of the file on this page is also encrypted along with the rest of the page when the postback occurs and the request is sent to the server. ...

ASP.net Upload Limit Server timeout

Hi I'm having a problem with uploading files in the media section of Umbraco. I'm not sure if the problem is size related as I don’t get an error that give too much details but I'll explain what I’ve done so far and see if you can help. I've added: <httpRuntime maxRequestLength="102400" executionTimeout="3600"/> to the web.config wi...

Where to store uploaded files in PHP & MySQL?

I'm solving problem of storing files in my web app. I've already done some applications where files were stored in filesystem (simple upload of a file via PHP) and I wasn't sure how to solve the security issues correctly (I have the webapp on a shared webhosting). Is there any "manual" or book which target these issues in detail? Rece...

Using PHP to upload an image and store data in MSSQL

Hi there, I'm attempting to upload an image as well as add details such as; title, description and filepath into a database table. I'm using the following code, but it isn't adding any data to the database; (The session.php include contains the database connectivity.) <?php include('includes/session.php'); $uploadDir = 'submitted/pic...

Issue with multipart/form-data

I am not able to get values from both files and text input in a servlet when my form includes multipart/form-data. I am using the apache.commons.fileuploads for help with the uploads. Any suggestions. Also in the code below there are some things that I feel should be more efficient. Is there a better way to store these multiple files in ...

Need to understand why upload isn't happening in this case?

I've an html file with the below markup: <!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" > <head> <title>Upload Page</title> </head> <body> <form id="frmUpload" action="UploadHandler.ashx" method="post" enctype...

How to upload multiple files to a SharePoint List

I am trying to upload multiple files into a SharePoint LIST as attachments. (can't use Document Libraries). I'm trying to use jquery to accomplish this but I'd appreciate any help or advise you may have concerning how best to upload to a list. For instance, can multi-uploads be accomplished when creating a new item? If you have code ...

2 GB File upload in C#

Hello All, There is a requirement where the client needs a option to Upload Files that are really large (<=2GB) through browser. And i found that the browser can support only 2GB file upload. Is it so? If yes, then for at least 1.9999GB is there any solution? Tried working with the parameters like maxRequestLength, executionTimeou...

Upload a PDF file through Silverlight

I'm trying to piece together a library-like intranet website with silverlight. Is it possible to upload a pdf file from the client PC to the server? Also, I'd like to show the first page of the pdf file.. can I open the file on the server, take a snapshot of the title page and save it as a jpg/png thumbnail? How about get other informat...

How to test file's upload function with logic placed in rename filter (Zend_Form_Element_File)?

First my code: class ProfileController extends Zend_Controller_Action { private function getUploadAvatarForm() { $form = new Zend_Form; $form->setAttrib('enctype', 'multipart/form-data'); $form->setAction($this->view->baseUrl('/profile/upload-avatar')) ->setName('uploadAvatarForm') ->setMethod('POST'); ...

AsyncFileUpload Control

I am using the new AsyncFileUpload control from the latest AjaxControl ToolKit. My query is regarding the OnClientUploadStarted event which is fired before the upload is started. Is there any way to cancel the upload, as I am checking the fileExtension at this point and would like to cancel the upload so that it does not continue and go ...

HTML: How to limit file upload to be only images?

With HTML, how do I limit what kind of filetypes can be uploaded? To easy the user experience, I want to limit file uploads to be only images (jpeg, gif, png). <form method="post" action="..." enctype="multipart/form-data"> <label for="image">Photo</label> <input name="image" type="file" /> </form> ...

AsyncFileUpload *VERY* broken in the AjaxControlToolkit

Hi I've just downloaded the new AjaxControlToolkit from codeplex to give the much anticipated AsyncFileUpload control a go, but unfortunately it has fallen at the first hurdle... I have put it on a fairly simple page called uploadFile.aspx which takes a url argument: uploadFile.aspx?myDbId=1 In the page load, it's doing stuff with R...

HttpContext.Current.Session is null in a Module I don't have access to

I am trying to use this upload control as recommended by someone on here: http://darrenjohnstone.net/2008/07/15/aspnet-file-upload-module-version-2-beta-1/ So I'm trying to implement a custom processor in order to store the uploaded files in the session. However, when the file is passed to the processor (from the HttpModule) the SEssi...

PHP Image uploading - uniqueness via microtime()

If I make the filename of each uploaded file PHPs microtime(), are the risks of a collision realistic? And is there a way to further randomize the filenames? I'm expecting about 20,000 uploads in about a week. That's 2800/day or 119/hour (assuming even distribution). Does anyone have any experience with assuming microtime to be unique? ...

Limit Flex Web App Upload file formats and size (server script PHP)

Hello everyone I have found this great tutorial, about uploading files with a Flex app, using Php to do the server scripting for us. http://hybridhacking.com/tutorials/uploading-files-with-flex-using-php Its great, but i wanted to know what changes should i do at the ActionScript so that only accepts image files, and if possible to li...

PHP File upload to memory

I would like to upload a file from an html form, post it to PHP and load it into memory, bypassing writing it to a file. Is it possible to do a file upload and keep it in memory, or do I have to write it to a file? ...

How to do nice and simple file uploading in javascript?

All I want is: select a file small progress bar (unless it is not simple) fail/success confirmation on client side trigger action on server side. all that without page reloading Except that, the simpler the better. Snippet would be most welcome. ...

Apache Commons Fileupload / Tomcat cant cope with out.flush()

Does anyone know of a workaround whereby if you are trying to flush the servlet output stream, apache commons fileupload throws the following exception? FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly Basically I have code that loops through each file uploaded using apache commons fileu...

Validating a video upload in the Symfony Admin Generator

When using the admin generator to upload a video, my form is acting quite strangely. If the file is too large, i.e. it is larger than the PHP upload limit, the form displays the first error in the edit.yml file, or no error at all. My admin generator defines the video in the following way video_filename: help: Videos must ...