Descobri que não há solução para o componente aspupload. Vou escrever minha solução de melhoria aqui! Obrigado
Soluções para o componente de upload do aspupload, renomeação de arquivos e problema da barra de progresso!
Existem 4 arquivos no total, ou seja, 1.asp, 2.asp, bar.asp, framebar.asp
Execute o primeiro arquivo: 1.asp, execute a operação de upload!
A cópia do código é a seguinte:
<%
'' 'Barra de progresso
Dimspid, Pid, Barref
SetupLoadProgress = server.createObject ("Persits.uploadProgress")
SPID = UPLOUPPROGRESS.CREATEPROGRESSID ()
Pid = "pid =" & Spid
barref = "frameBar.asp? to = 10 &" & pid
%>
<ScriptLanguage = "javascript">
<!-
FunctionShowProgress ()
// Barra de progresso de carregamento
{
strappversion = navegator.AppVersion;
if (document.upfile.filename.value! = "")
{
if (strappversion.indexof ('msie')! =-1 && strappversion.substr (strappversion.indexof ('msie')+5,1)> 4)
{
winstyle = "Dialogwidth = 375px; dialogHeight: 175px; centro: sim; status: não";
window.showmodelessdialog ('<%= barref%> & b = ie', janela, winstyle);
}
outro
{
window.open ('<%= barref%> & b = nn', '', 'largura = 370, altura = 165', true);
}
}
returnTrue;
}
functionispic () {
Vartemp;
varextList = ".
varFilename = upfile.fileName.value;
varthe_ext = filename.substr (filename.lastIndexof (".")+1) .tolowerCase ();
if (extlist.indexof (the_ext) ==-1) {
alerta ("Não é uma foto, selecione o arquivo de imagem!");
returnfalse;
}
returnTrue;
}
//->
</Script>
<html>
<Head> </head>
<Body>
<formmethod = "post" rtype = "multipart/form-data" action = "2.asp?
Selecione o arquivo para fazer upload: <br>
<inputType = filename = "filename"> <br>
<inputType = submitValue = "upload" onclick = "returnispic ()">
</morm>
</body>