Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di pip19
    Registrato dal
    Dec 2001
    Messaggi
    512

    upload baol funzionamento server

    Ciao,
    sto usando l'upload di baol.

    In locale mi funziona bene tutto... salva su database e salva anche il file nella cartella.

    On line mi scrive soltanto su database, e non UPPA il file...

    uffa!

    codice:
    Dim oUpload
    Set oUpload= new cUpload
    With oUpload
    .SetDatabase "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("mdb-database/selectede.mdb"),"SELECT Top 1 * FROM tbl"
    
    .EnabledAspUpload	= False
    .EnabledImageSize	= False
    .EnabledLog = False
    .AutoRename = True
    .Overwrite = False
    .SetPath "/files/"
    .Load
    If Not .EOF then
    .Database.Open()
    	While Not .EOF
    		.Save
    		Database.Fields("Name") = .Form("Name")
    		.Database.Fields("Surname") = .Form("Surname")
    		.Database.Fields("Email") = .Form("Email")
    		.Database.Fields("Status") = .Form("Status")
    		.Database.Fields("Institution") = .Form("Institution")
    		.Database.Fields("Country") = .Form("Country")
    		.Database.Fields("Abstract") = .GetFileName
    		.MoveNext
    	Wend
    	.Database.AddNew()
    else
    response.write("Nessun file caricato")
    end if
    End With
    Set oUpload = Nothing

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    La cartella files deve avere i permessi di scrittura.

    Roby

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.