You can also upload files from client-side without interaction of user (for example one specified file o set of files)
Q: The program looks very nice. I am only wondering if the following is possible. Is it possible to upload a file without user interaction? So that the user doesn't need to select the file to upload.
I want this to be an automatic process. I know the files that need to be uploaded, so when I open the upload.asp page, I want the upload progress be executed automatically. If this is possible, where can I find it in your help?
This functionality has some of very old versions of internet browsers. There is a big security problem with such function - imagine what you can to do on a client computer with such security leak ...
So this is not possible in standard HTML and JavaScript/VBScript now - because of security reasons. You cannot access files on client computer in safe-scriptable code, of course.
We can use some work-around for such work, of course - using unsafe code - Scripting and ADODB objects. I wrote a short article with full VBS source code at https://www.motobit.com/tips/detpg_uploadvbsie.htm.
Frequently asked questions about ScriptUtilities, Pure-ASP and Huge-ASP upload functionality.
Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 4GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance . The software has also a free version of asp upload with progress, called Pure asp upload , written in plain VBS, without components (so you do not need to install anything on server). This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files , works with binary data , you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.
© 1996 - 2011 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz