file-upload

ASP.NET File Upload

Hi there, I am trying to make a server page (C#, asp.net 2.0+) to save an uploaded file from another page. Specifically, I have an HTML page with a <form action="upload.aspx"> and I can't figure out how to handle saving the file on the server in upload.aspx. I found a few examples (one being: http://msdn.microsoft.com/en-us/li...

How to debug socket error

Hi! I've this code: 1 upload_odl function import os import urllib2_files import urllib2 user = 'patrick' password = 'mypass' url = 'http://localhost:8000/api/odl/' password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() password_manager.add_password( None, url, user, password ) auth_handler = urllib2.HTTPBasicAuthHandler(p...

ASP.NET File Upload - > Translation from PHP

Hi All, I posted something similar but I am changing my question around enough to warrant a new post. I am trying to handle a posted file to an aspx page (C#). I am told this is not possible without a postback from <input type=file> or the asp file uploader. However, I have a PHP script does this perfectly, so I am really hoping it ...

CKEDITOR, Image Upload in jsp pages

Hello. I've been looking for a tutorial on this matter but all of them are using php. I need to integrate an image uploader for ckeditor in jsp pages using java code. if someone could help me out or direct me to a tutorial, I'll be very thankfull. ...

Multiple file uploads asp.net mvc

Hi i am trying to upload multiple files into the server.But when i am using Request.Files in the controller action i am getting the single file only even if i am attaching multiple files using the file input box. Thanks In Advance, Platform:Asp.net mvc O/s :winxp ...

How to upload files to MediaWiki using Python?

I'm trying to upload an image (just a random picture for now) to my MediaWiki site, but I keep getting this error: "Unrecognized value for parameter 'action': upload" Here's what I did (site url and password changed): Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "cop...

Apache commons fileupload FileItemIterator hasNext() returns false

Hi all, I'm using the apache commons fileupload stream api. But the FileItemIterator FileItemIterator iter = upload.getItemIterator(request); returns false in its hasNext() iter.hasNext() What is wrong with this? The code and the web part is as follows: protected void doPost(HttpServletRequest request, HttpServletResponse response) ...

Optimise file upload

Hi, I have a small php script which allows me to upload image file on the server. The only problem is that it takes a whole life to upload a 586 kilobytes image file. It there anyway to optimise this?. I'm running a 256kb/s download and 58 kb/s upload. Thanks ...

How to restict the files to image type using file upload in asp.net

i am using file upload, i wanted to restrict the files showing in the dialog box to images only. That is 'Files of Type' in the dialog box should be .jpg,.jpeg,.gif,.bmp,.png can anyone guide me on this issue. Thanks. ...

How to display a picture using data from ViewData.Model [as opposed taking data from a remote location using, for instance, Url.Action]

Hello, I'm doing kind of wizard application that captures information on Contacts. So, before saving to DB, all data collected during the process are kept in memory as model's properties (using serialization/deserialization). Data collected includes the uploaded picture of the contact. The last page is called "preview" where I display a...

PHP & Apache error - where it is shown ?

I'm running PHP with Apache locally on my PC on Windows. The script uploads files to the server. When the file size is bigger than upload_max_filesize that is defined in php.ini or the max_execution_time is exceeded, the file is not uploaded to the server and I don't see any message error. My question is where I can see what was the erro...

SWFUpload uppload error 500 - asp.net website

I have a asp.net website where I am using the Flash SWFUpload (http://code.google.com/p/swfupload/) upload component. The same code is hosted on two servers - on server A I can upload images without any problems. On server B I get Error 500 when I try to upload - no other error message. I am unable to find what server settings are dif...

asp.net file upload problem

I`m using vs2008. I added a webform with the following code: <form id="form1" runat="server"> <div> <table> <tr> <td> upload image: </td> <td> <asp:FileUpload ID="FUImage" runat="server" /> </td> </...

Catch error in file upload in MVC

Hi In my MVC web app, I have a file upload page. A file size restriction is set to 60MB in web.config. So, anything upto 60 MB is fine. But, if I upload larger files, my application crashes. The form post is not reaching at the action method. How can I handle this elegantly? Any ideas? Cheers Daniel ...

ASP.NET Dynamic Data and uploading files

I am developing a small, internal-use only web application. Given its simple nature and intended audience, I decided that it might be a good opportunity to use a ASP.NET Dynamic Data project to get things up-and-running quickly. So far so good, except for one issue that has me reconsidering the whole plan: I need to be able to upload fi...

Get the content of MultipartFile

I am trying to get the content of MultipartFile, which is obtained through MultipartHttpServletRequest.getFile(). There are 2 functions in MultipartFile, bytes[] getBytes() () InputStream getInputStream() What is the most efficient way to get the content? (which method would you use?) ...

Android file uploader with server-side php.

Hi, I've been looking for a solution to this for hours, but I can't find any. Basically, I want to upload, from my android device, files to an http website. However, I have no clue whatsoever how to do this. I'm using java on the device, and I would like to use PHP on the server-side of things. I just want to upload the files, not do an...

file upload to server took time to complete

I tried to upload an image using localhost was upload instantly, however, when tried on my webhosting, it took more than 5 mins for the file to appear in "_uploads" folder. Do anyone encounter the same problem? Does AV took account for the delay in scanning? <?php $hasError = false;foreach( $_FILES as $i=>$file ){ if ( $file['error...

Can't convert HttpFileCollectionBase to HttpFileCollection...

I have a partial view: <% using (Html.BeginForm("add", "home", FormMethod.Post, new { enctype = "multipart/form-data" })){%><input name="IncomingFiles" type="file" /><div class="editor-field"><%: Html.TextBox("TagsInput") %></div><p><input type="submit" value="Create" /></p><% } %> And this in the controller: [HttpPost] publ...

ASP.NET file browser get filepath

I'm using an <input type="file" /> as a file browser dialog in MVC. I don't actually want to upload the file though, I am using it to select a template on a shared drive. I only want to get the full filepath in my action method. The server will then process the file and force download to the client. I have got hold of the HttpPostedFile...