Jump to content
Fórum Script Brasil
  • 0

Upload não mostra nomes dos arquivos


Legionáriors
 Share

Question

Boa tarde pessoal,

Alguém saberia me dizer porque o script abaixo não mostra o que está no "response.write"? Ele envia os arquivos pra pasta destino mas não mostra o nome do arquivo. Pode ser um erro bobo mas estou tanto tempo emcima disso e de outros scripts que não to vendo o erro... se alguém poder ajudar agradeço muito...

Em tempo: o form é tipo multiple...

<!--#include file="conexao2.inc"-->
<!--#include file="estilo.inc"-->

    <h3>Arquivos enviados</h3><br>

<table width=960>
        <tr><td>
        <fieldset><legend>Info</legend>Seus arquivos foram enviados. Verifique se foram estas as fotos enviadas, se estiver tudo correto clique em "Enviar para cadastro" e finalize o cadastramento do veículo.</fieldset></td>
        </td></tr>
</table>
<br><br>
<form method="post" name="upload" action="cad_veiculos.asp">

<%response.buffer=true
Server.ScriptTimeout = 99999999%>
<%
'AspUpload
Set Upload = Server.CreateObject("Persits.Upload")

    Upload.ProgressID = Request.QueryString("PID") 'faz parte do carregando

Upload.OverwriteFiles = False
pasta = Server.MapPath("../images/")
Upload.Save pasta
    Set Fotos = Upload.Files("img_01,img_02,img_03,img_04,img_05,img_06,img_07,img_08,img_09,img_10,img_11,img_12,img_13,img_14,img_15")

nome_arquivo1 = Fotos.Filename("img_01") 
nome_arquivo2 = Fotos.Filename("img_02") 
nome_arquivo3 = Fotos.Filename("img_03") 
nome_arquivo4 = Fotos.Filename("img_04") 
nome_arquivo5 = Fotos.Filename("img_05") 
nome_arquivo6 = Fotos.Filename("img_06") 
nome_arquivo7 = Fotos.Filename("img_07") 
nome_arquivo8 = Fotos.Filename("img_08") 
nome_arquivo9 = Fotos.Filename("img_09") 
nome_arquivo10 = Fotos.Filename("img_10") 
nome_arquivo11 = Fotos.Filename("img_11") 
nome_arquivo12 = Fotos.Filename("img_12") 
nome_arquivo13 = Fotos.Filename("img_13") 
nome_arquivo14 = Fotos.Filename("img_14") 
nome_arquivo15 = Fotos.Filename("img_15") 

response.Write"<table border=0>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo2
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo2
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo3
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo4
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo5
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo6
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo7
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo8
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo9
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo10
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo11
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo12
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo13
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo14
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Foto da Capa"
response.Write"</legend>"
response.Write"<input type=text size=26 name=img_01 value="
response.write nome_arquivo15
response.Write"></fieldset></td>"

response.Write"<td><fieldset><legend>Enviar Fotos"
response.Write"</legend>"
response.Write"<input class=submit-button type=submit value=""&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enviar para cadastro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"">"
response.Write"</form>"
response.Write"</fieldset></td></td></tr>"

response.Write"</table>"

%>
<br><br>
<br><br>
<br>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...