AspSmartUpload

sebspot71 Messages postés 3 Date d'inscription lundi 6 février 2006 Statut Membre Dernière intervention 2 septembre 2010 - 2 sept. 2010 à 20:26
Boreux Messages postés 45 Date d'inscription jeudi 31 juillet 2003 Statut Membre Dernière intervention 29 novembre 2010 - 29 nov. 2010 à 16:46
Bonjour à tous,

J'utilise aspSmartUpload et j'aimerai télécharger toujours le même fichier.

Je suis sur 2 pistes :
- donner une valeur dans le input="type"
(ca ne marche pas)
- définir dans la page d'upload le mySmartUpload.Files.Item(1)
(ca ne marche pas)

Voila, si quelqu'un peut m'aider ... merci

1 réponse

Boreux Messages postés 45 Date d'inscription jeudi 31 juillet 2003 Statut Membre Dernière intervention 29 novembre 2010
29 nov. 2010 à 16:46
The DownloadFile method.

Syntax
.DownloadFile(SourceFile[, ContentType, NewFileName])

Parameter
SourceFile is the source file. The path can be a virtual or a physical path. If there is only a file name, then this one have to be placed in the root directory of the web server.
ContentType.
NewFileName indicates a new name in the "Save As" dialog box.

Example

<%
Dim MyUpLoad
Set MyUpload = Server.CreateObject("AspSmartUpLoad.SmartUpLoad")
MyUpload.DownloadFile "c:\temp\myFile.txt", "application/x-zip-compressed", "NewFileName.txt"
%>



--- Ced ---
0
Rejoignez-nous