473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

(OT?) HTML Question

Is there a microsoft newsgroup where I can post a question such as the
following?

I have a form that has a couple input boxes and a "file" input box as well.
Basically you enter two text values, browse to a file and hit submit. I
need to automate this, because I'm posting this data to another company's
website at regular intervals. I assume I can just convert the text boxes to
hiddens with hardcoded values (they won't change). But I need to convert
the "file" to a control that doesn't require input. It will be posting the
same file every time. Apparently I can't hardcode the value of the file
control, so how in the world do I go about this?

Thanks,
Jim
Jul 19 '05 #1
3 1224
You can't programmatically invoke the input type=file command... this HAS to
be user-driven. You will need to find some way to do this (e.g. use a VBS
script to copy the file from one server to another, maybe via FTP or
\\fileshare\... you won't be able to automate a traditional upload via form
post without running third party tools.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James Baker" <cp******@hotmail.com> wrote in message
news:uC**************@tk2msftngp13.phx.gbl...
Is there a microsoft newsgroup where I can post a question such as the
following?

I have a form that has a couple input boxes and a "file" input box as well. Basically you enter two text values, browse to a file and hit submit. I
need to automate this, because I'm posting this data to another company's
website at regular intervals. I assume I can just convert the text boxes to hiddens with hardcoded values (they won't change). But I need to convert
the "file" to a control that doesn't require input. It will be posting the same file every time. Apparently I can't hardcode the value of the file
control, so how in the world do I go about this?

Thanks,
Jim

Jul 19 '05 #2
The problem is, I don't even need to use an input type=file control, because
I know the exact path of the file every single time. I've tried just
creating a hidden value with the filename in it, but it doesn't seem to have
the same behavior. Is there more to the input type=file control than just
finding the file and storing it in a text box?

Thanks,
Jim
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:uQ****************@TK2MSFTNGP10.phx.gbl...
You can't programmatically invoke the input type=file command... this HAS to be user-driven. You will need to find some way to do this (e.g. use a VBS
script to copy the file from one server to another, maybe via FTP or
\\fileshare\... you won't be able to automate a traditional upload via form post without running third party tools.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James Baker" <cp******@hotmail.com> wrote in message
news:uC**************@tk2msftngp13.phx.gbl...
Is there a microsoft newsgroup where I can post a question such as the
following?

I have a form that has a couple input boxes and a "file" input box as well.
Basically you enter two text values, browse to a file and hit submit. I
need to automate this, because I'm posting this data to another company's website at regular intervals. I assume I can just convert the text boxes to
hiddens with hardcoded values (they won't change). But I need to

convert the "file" to a control that doesn't require input. It will be posting

the
same file every time. Apparently I can't hardcode the value of the file
control, so how in the world do I go about this?

Thanks,
Jim


Jul 19 '05 #3
> The problem is, I don't even need to use an input type=file control,
because
I know the exact path of the file every single time.
The problem is, input type=file is the only way for a browser to upload a
file using an ASP page.
Is there more to the input type=file control than just
finding the file and storing it in a text box?


Yes!

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
17
by: henry | last post by:
Folks Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit of php code in the middle: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.