Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, December 26, 2006 2:53:43 AM(UTC)


Groups: Registered
Posts: 101

I want to upload single file to server from client.

I will set the path of file to be uploaded by coding.

I am using following command to create upload control instance at server end

Set Upload  = Server.CreateObject("LEAD.Upload")

I am using File control to select file.  When I select file using Browse button on File control, file get uploaded successfully.  But I donot want to use Browse button.

In my project, File control will be invisible.  I will set the value of File control by coding.

But when I do the same, file donot get uploaded.

I tired other controls to replace the file control like text box, label etc.  All of them are not uploading the file successfully.

All other details are specified in the sample pages attached herewith.

How LEAD.Upload control works at server end ?

Where from it get the source file path ?

What is the problem in my sample project ?

Please modify the sample project and upload it back here.  The sample project should work if you hide the File control and set the value of file control using coding.

Waiting for reply

File Attachment(s):
SamplePages.zip (1kb) downloaded 31 time(s).

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, December 27, 2006 11:44:51 AM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 764

First, The only way you can get files with the upload opject's Files collection is by using a <input type="file" ... /> tag.  No other types of inputs will populate the Files collection.

Second, you cannot set the value of a file input programmatically because it is a security issue.  Basically, you would be forcing a computer user to unknowingly upload a file from his machine to your server.  See this article from Microsoft for more details:

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.086 seconds.