-
Nov 15th, 2012, 01:21 AM
#1
Thread Starter
New Member
Internet Form - Supplying File Names to be uploaded by form.
Howdy All,
Completing a web form using VB6 is pretty straight forward. Supplying file names (images) that the form needs to upload however is a "different kettle of fish" as one would say. Is it at all possible to supply these file names? If so how would I do this?
Example Popup from web page:
Thanks for your help.
-Barry
-
Nov 15th, 2012, 08:48 AM
#2
Re: Internet Form - Supplying File Names to be uploaded by form.
I think you can specify the filters (not sure how, but surely it's possible) ... but I don't think you can specify the name... if you think about it, it makes sense... otherwise, what's stopping me from creating a file tag, with "yourBankInfo.txt" as the file name, making it hidden, and when you then submit the form, the file would go with it... short of it is, that it would allow someone to snag files off of someone's drive w/o them knowing it, a clear security breach. Now... if you need a specific file, set the filter to the correct type, then add a label or something next to the file/upload/select/what ever you called it button that gives the name of the file looking for.
-tg
-
Nov 15th, 2012, 09:17 AM
#3
Thread Starter
New Member
Re: Internet Form - Supplying File Names to be uploaded by form.
-
Nov 16th, 2012, 03:09 AM
#4
Re: Internet Form - Supplying File Names to be uploaded by form.
for some applications (particularly screen dumps for vbforums), i put the filepath/name into the clipboard, then can just paste and click enter
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 16th, 2012, 08:13 AM
#5
Re: Internet Form - Supplying File Names to be uploaded by form.
yeah, I do that too... but that's human action... I think the OP wanted to specify the filename automatically... from his site so that others don't have to.
-tg
-
Nov 16th, 2012, 08:38 AM
#6
Thread Starter
New Member
Re: Internet Form - Supplying File Names to be uploaded by form.
Yep. Automatically is the way I want to go. Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|