file-upload

How do you choose the filename of an uploaded file in ICEfaces?

How do you choose the filename of an uploaded file in ICEfaces with an ice:inputFile? The reason I want to do this is so that the user can upload multiple files with the same name, without them being overwritten by the server or causing an error. I've tried setting the tag's submitOnUpload attribute to "preAndPostUpload" and making an u...

Firefox (only) Dynamic Form Action Not Working

Console is returning blank for the action attr. I've moved the: $('#file_upload').attr('action','io.cfm?action=updateitemfile&item_id='+$('.agenda-modal').attr('data-defaultitemid')); Around in and out of the .live('submit') and no luck. I also tried it without the +$('.agenda-modal').attr('data-defaultitemid') part and it still retur...

How can I write tests for file upload in PHP ?

I'm using simpleTest to write my PHP tests. I'm writing a file upload plugin and was wondering how I may be testing it. I would like to check that the file is correctly uploaded, in the right folder, that error are correctly returned when needed, etc. How do I emulate a file upload (through the $_FILES variable) ? Are there any issues ...

Using BITS (Background Intelligence Transfer Service) to upload to IIS 7

Hi, I'm using a BITS client (written in C# using the SharpBITS library) to upload a file to IIS (configured with the standard Microsoft BITS IIS Extension). It works very well with IIS6, but when switching the server to IIS7, I'm getting a "TransientError". Resuming the job in this state does not change anything. The configurations of...

file upload using WPF client

I have a WPF client application. Through which I want to upload a file to my web server. How to do that? ...

Why is my secondary featured image not showing in using Wordpress?

I am using wordpress and am using featured images(they used to be called post thumbnails). I wanted to use multiple featured images, so I chose to use the Multiple Post Thumbnails Plugin. I can get the Secondary Image Upload box to show up in the admin area, but I can't manage to get the image to display on the page. This is the code I...

Retrieve uploaded file in ASP.NET

I am using ASP.NET and C#. I have made a document uploading page, In which use can upload their document. I am saving three fields in the database, Document Name [NVarchar] File [Image] DocumentType [NVarchar] Now, I am able to add records in the database, successfully. Now I want to show it in the gridview, like DocumentName, Docum...

How to get key values with foreach?

The Problem: Hi! I'm making a file upload form where I can upload photos, I added multiple="" to the input and for the name="upload_photo[]" so I'm able to upload multiple files. When I print $_FILES['upload_photo'] I get this and I want to get the values of each key with foreach. So for example I want to get just [name] what will be...

JWebUnit to test File Upload

I am trying to test a File Upload field with JWebUnit but I do not know how to do that. I see that JWebUnit has a dependancy on common-fileupload so I expect that this is possible but I can see nothing documenting it so the feature may as well not exist. I have done some extensive searching and looking so I think soon I might even go as ...

How do I get around apache owning files uploaded to a PHP webserver?

Hey all, I am working on a PHP web app on a Linux web server for grades and documents for a course that I am co-teaching. The page I am writing at the moment is for submitting assignments, where the student selects an assignment from a drop-down menu and then uploads the assignment and submits. On submit, all the information about the s...

what is the best strategy to build file transfer application?

Hi all, I'm working on a UDP File(large) transfer application. Client end is Adobe Flash builder and also in VC++ and Server end is C++. I'm sending my file in packets and resending the missing packets.Finally it is taking the time what ever TCP. I'm using winsock2 at server end but not complete functions.Is there any better protocols o...

BITS Credential Problem

Hi friends, i am facing the BITS Security problem. I am creating the application where i am using t BITS to upload and download the file to the IIS server. Now, my requirement is that i want to make my Virtual Directory password protected. i have done it through IIS>Directory Security i disallow the anonymous access. But from the clien...

Apache commons file upload alternatives

I was wondering what Java File Upload API's StackOverflow users have used in the past and would recommend using? A quick Google Search seems to indicate that the most commonly used API is Apache Commons File Upload (currently at 1.2.1), however, we've had some issues regarding the use of this library with larger files that we've been una...

One upload dialog - Two targets ?

Using CKeditor 3, I've created image handling functions: An upload reciever (filebrowserUploadUrl) and an image browser dialog (filebrowserBrowseUrl) - Both work perfectly BUT of course my users want more... We have two image-databases: Common and Private - The image-browser lets the user pick images from either. My upload-reciever (p...

How to construct HttpPostedFileBase?

I have to write a Unit test for this method but I am unable to construct HttpPostedFileBase... When I run the method from the browser, it works well but I really need an autoamted unit test for that. So my question is: how do I construct HttpPosterFileBase in order to pass a file to HttpPostedFileBase. Thanks. public ActionResult ...

Uploading files to server in Android.

I did upload a text file from C drive to server using java code.. I included the same code in android and executed. But i am unable to upload the file. I am getting these warnings in catlog: >08-07 17:39:12.360: WARN/System.err(32030): java.io.IOException: Unable to connect to server: Unable to retrieve file: 550 >08-07 17:39:12.391: W...

Protocol for a desktop based file uploader

Hi, I am trying to build a large file uploader. Currently I am using swfupload and nginx + rails and I am able to upload a file as large as 1 GB before running into problems. After 1 GB, depending on OS, swfuploader starts locking up or just starts throwing 500 errors. I noticed that Vimeo offers 2GB uploads using a desktop uploader. ...

Error while uploading file in asp.net

Hi Experts, I have a asp.net application which is working from last 2-3 years, it has file uploading feature. Today when one of my user tries to upload 4 file in which 3 files uploaded successfully, while he got the error in the 4th one saying that the user don't have permission to upload file. I am surprised to know that why it didn't ...

How to display the file path from the input file tag?

Hi, I have a screen as shown in the below image. Once a file is selected, I need to display the selected file name with complete path in the "Import Files". I suppose, it has be done with the javascript. Someone, please give me an idea how to achieve this functionality. ...

SharePoint 2007: How to upload multiple files to a List Item?

Hi, I know that a Document Library in SharePoint 2007 has a multi-file uploader (an ActiveX control that -- and only if you have Office 2003+ installed) but how would I use this same feature with a normal (non-document-library) List item? Uploading files to a normal List item involves clicking the "upload" link and browsing/uploading f...