File Upload: Without using File Input control

Can anybody just tell me how to store a single file from client machine on to server without using a HTML File Input Control.



2/5/2007 1:46:46 PM 91979 articles. 4 followers. Follow

2 Replies

Similar Articles

[PageSpeed] 20
Get it on Google Play
Get it on Apple App Store

You can use the FileUpload control, but that just renders an HTML file input control in the end.  If you don't want to use any HTML stuff, you could use an ActiveX control.  There are plenty available by searching.

Darrell Norton, MVP
Darrell Norton's Blog

Please mark this post as answered if it helped you!
2/5/2007 3:31:43 PM

I tried to find from your serach string but I could not find the exact code in Asp.Net. Can you Please send me the link which will resolve my issue.

Coming again to my problem, I want to Upload 10 files from client. I will hard code the folder path and when he will click on send button, these 10 files should save into database on my server.

Thanks in advance.




2/6/2007 10:01:51 AM

Similar Artilces:

How can Upload file without using input (file) control
I want to save image in the database from client PC. I use ASP.NET 1.1, Using C#, sql server 2000.  I took a hidden field (picHidden) and store filePath in it. Input (file) control is not allowed b/c I took the image using Web Cam in an Image Web Control. I did by it using the following code   FileStream fs = new FileStream(picHidden.Value,FileMode.Open, FileAccess.Read); byte[] ImageData = new byte[fs.Length]; fs.Read(ImageData,0,Convert.ToInt16 (fs.Length)); emp.UpdateEmployeepic(this.sEmpId, ImageData);   The problem is, my code work fine when I run...

Uploading Files without using File control
Hi Everyone, I'm in need of a feature where i need to upload a file without using File control. Anyone have pointers to go about it ? I've already gone through this tutorial: when i try to run the code it gives me the error on window 2000 PC:"Safety settings on this computer prohibit accessing a data source on another domain."even though security setting set to "Low". And on XP machine i get the error:"Can't create automation server" (or something like that not entirely sure)My actual requirement is to upload a file using AJAX.Help will be gr...

How to upload file without using file control...???
Hi, I have List of file path of Client. say "C:/WordDoc/Document1.doc". Now i want to upload this file to server.I dont want to use File Upload or Input File HTLM Control. Only i have is Path in some lable or text box. Now, How to upload this file from client to server? I dont have idea on it. Java has Third party API for uploading but i dont have idea on it. Can one help me on it. Whether some ActiveX or API avialble to do so. Thank You In Advance...!!!   ---Bhavin I can't see any worthwhile reason to not use the FileUpload control, but.....

How to upload file without using html file control
hi i want to know how to upload files without using <input type=file ... > control.means without browsing and selecting the file. i know due to security issues its not allowed that we assign value to file control. but there must be some way of doing it. i heard this can be done using  "HTTP POST" ?  or by opening a socket conenction with the web server? please help  Irfan Zafar Using HTTP POST requires that you use a form and, therefore, use a HtmlInputFile Control. Obviously this isn't what you want to do. The only solution is to write an ActiveX Contr...

How to identify the original file type and restrict the file uploading while using file upload control
 Hi , I am uploading a file using FileUpload control in using wrote the code to upload only PDF files. the user can change the extension and change to PDF . I have to check is the file original PDF or not then i have to upload the PDF files only . How to do this ??  Hi, Check the file Mime type for "application/pdf" by looking at the:  FileUpload1.PostedFile.ContentType RegardsSmcoxonNo Gem is ever polished without some friction. Hi smcoxon , Thanks For Replying ,But i found that there is no use using PostedFil...

How to upload file without using file control in 1.1?
I saw several examples of file control.  Works great!  But I am looking to incorporate this in a webservice that will receive the path parameter and upload the file. Is this possible using 1.1 code? Hi, not directly. You still need to upload the file to your webform but instead of saving it you pass it to the generated proxy of the webservice as a byte array (byte[]) parameter. Grz, Kris.Read my blog. Handy Firefox plugins for web developers. Anyways, How can i read a files Byte[] - the file that exists on the client without uploading to the server? Hi, nimish:How can i ...

Uploading Multiple Files to your Webserver using only one File Input control
Does anyone know of a way to pload multiple files to your webserver using only one file input control, while also adding the filename to a column in your database. I have been searching the net forever and can only find articles that show you how to do multiple file uploads but with a file input box for each file to upload. I want one input box where you could select multiple files, hit submit, and they all upload at once and the filename is recorded to the database. Any help with this would be greatly appreciated. Thanks. I don't think it's possible. Have you seen an example some...

how to get author from file when upload using upload control using javascript
function CheckSchemaFileExistence() { var Schemafilename=document.getElementById('<%= this.flUploadB.ClientID %>').value;if(Schemafilename.length>0) {return true; } else { alert("File Name cannot be empty");return false; } }   we written code in button click . i need a file author name . how to find it can any tell me . thanks in advance Hi harish448 For your information, I know you want to get the file's author name, which from client-side But I think Not all type of files have the attribute of "author name" (I think on...

upload file using input control: keep the selected file displayed
 Hello,I'm using an input control that allows the user to select a file to upload:<input id="File1" type="file" runat="server" size="60" />When the user selects a file and after PostBack, the input file control is blank. How do I make it keep the value of the selected file ?Thanks. Hi ultravi0let, Set EnableViewState property on the FileUpload or INPUT control to "true" MausyIf this post answers your question please "mark it as answer" on the title of the post in order to inform other users! Thanks. Mausy  ...

Is there a way to automate uploading file in a web page using html file input control?
I used a form with a web browser control on it to automate the process of connecting to a website entering the login and password and finish the process of uploading a file.As you navigate to the upload page i can't get the input file control to work automatically because the value property is read only and here is the code HtmlDocument loginPage = wb.Documanet;loginPage.All["file1" ].SetAttributes("value", @"C:\A\A.txt");              //this doesn't work Your help is appreciated. Mark as an answer if it helps. ...

Upload multiple files to the server without using File Upload
I want to upload multiple files to the server without using input type file (File Upload). Is there a way to do this. What I want to do is retrieve multiple file paths (paths are displayed in a user control like text boxes) and upload those files to the server as a bunch. I tried to set the value of the File Upload cotrol (using javascript) but it was not succeed since attributes of the File Upload are readonly. (document.getElementById("fileUploadValue").value = "C:\Test.txt") Is there a way to override the values in File Upload control or is there a way to up...

problems uploading a file... using the HtmlFileUpload control (<input type="file" ...>)
hey everyone, Im trying to run the following code...  1 public static void UploadItem(HttpPostedFile UploadedFile) { 2 3 int _fileLength = UploadedFile.ContentLength; 4 byte[] _data = new byte[_fileLength]; 5 6 UploadedFile.InputStream.Read(_data, 0, _fileLength); 7 8 string _filePath = "C:\\Development\\MBS Podcast\\MBSPodcast\\items"; 9 using (FileStream _fs = new FileStream(_filePath, FileMode.Create)) { 10 try { 11 12 _fs.Write(_data, 0, _data.Length); 13 14 } catch (UnauthorizedAcces...

Is there any limitation of file types that file upload control can be used to upload?
I am working on a content management system which requires me to upload WebEx recording files (.wrf) through file upload control. But I am getting "internet explorer cannot display the webpage" error. It worked with other files types as txt, doc, xls, pdf, jpg, gif etc. Is it related to any security issue or just a bug with the file upload control?  Thank you. The file upload control doesn't have any file type limitations that I'm aware of, but it does have some size constraints.  By default, ASP.NET is configured to not accept any file's larger than 4...

Add link buttons to each file uploaded using File upload control
Hi,   In my application I have one file upload control. When the user selectes a file to upload and when he clicks on Attach button I need to show him the file name of the file he selected to upload and also show the Remove link button after the file name. In this case I need to generate link button dynamically. I wrote a code like the following:protected void btnAttach_ServerClick(object sender, EventArgs e) {string strFileName = MyFile.PostedFile.FileName;string c = System.IO.Path.GetFileName(strFileName); listBoxAttachedFiles.Items.Add(c);LinkButton b = new LinkButton(); b.Te...

Web resources about - File Upload: Without using File Input control -

Resources last updated: 12/20/2015 10:04:20 PM