Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uploading image file to web server
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00142442
Message ID:
00143862
Views:
38
>>>File Uploads are part of the HTML 3.2 and up spec... If you've
>>>used it you know that you cannot prep the TYPE="FILE" fields
>>>with a value - the value is ignored.
>>
>>Does this mean that the server cannot specifiy the file to be uploaded? What does the client see happening with this mechanism? What does he have to do to get the file on its way?
>
>The server cannot control which file to download. The FILE object is
>not in any way scriptable or able to be set with a VALUE. The only
>way to fill it out is to type in a file name or click on the file
>button.
>

True enough, but once the file is uploaded, you can check it for type. I setup a test page on my web server using Web Connection that has the "file upload" html copied from the wwdemo program. After the user sends the file, I check to see if it has a jpg extension and if so, copy it where I want it and delete the original. You also can limit the size of the uploaded file, via Rick's program. I believe the default setting (Rick's code) is 500k.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform