Ok here it goes I posted this under the ASP section already with no reply so hopefully I get a reply under the javascript section
I know Dundas Upload is a bit old but it was free so I took it and believe it or not it works well so far on server 2003
Ok I need to get the filename from the file box (text box) before it is uploaded to the server.
This is why
I do not like the unique file name feature they have for it but seeing as how there will definately be some schmuck out there that willl upload the a different file with the same name and overwrite the first one I need to use it only in those instances.
So here it goes I need to check the filename that is in the filebox prior to it being uploaded and verify that it is not already on the server
So I am not sure how to get that name using the Dundas control but I am pretty sure that I could use a javascript function on that filebox by utilizing the Onchange() ..... Now here is the million dolloar question how do you write a javascript function that will take the value of the filebox and take everything away execpt for the filename? I could have that the javascript function automatically post that into a hidden field so that I can pass that over to the second form.
If that is not the best way to go about it and someone has a better way please let me know.....
Start Free Trial