Help - Search - Members - Calendar
Full Version: ASPSimpleUpload
Hostony Board > General Support > General Support
MartinB
somebody here have problems using the ASPSimpleUpload to upload files to a directory ?

I have asked to support to change the directory write permissions... but it's like this is not the main problem ?

(ticket 14745)

here is the piece of code:

CODE
 dim upl1
 Set upl1 = Server.CreateObject("ASPSimpleUpload.Upload")
 dim fs1
 set fs1 = Server.CreateObject("Scripting.FileSystemObject")
 
 archivoSubir="noticias_"&news
 extArchivoSubir=fs1.GetExtensionName(request.form("upl_img"))
 linkSubir= "/media/arch_noticias/" & archivoSubir &"."&extArchivoSubir
 
 ' Delete the file...

   if fs1.FileExists(server.mappath(linkSubir))=true then
    ' Delete...
             fs1.DeleteFile server.mappath(linkSubir),true
    end if

 ' Upload the file...

 If upl1.SaveToWeb("upl_img", linkSubir) =false Then
       response.Write("The file "+linkSubir+" can't be uploaded, please try again..."&server.mappath(linkSubir))
     response.End()
 End If  
MartinB
wowowow
i have learned asp the last 30 min and i wrote my own upload script.

it work!! so, surely a problem with the script of the user.
bpgisme
I'm still having trouble uploading images through my Nucleus weblog. They say on the Nucleus forum that the server php is in "safe mode" or the "open_basedir" needs to be changed. They say it has something to do with permissions and such.

I put in a ticket yesterday, so maybe it'll be fixed today... Trouble is, I don't know exactly what to ask for, so I've just told them what I just said here. I don't really know what the permissions need to be changed to. sad.gif

-Bonnie
bpgisme
(I fixed my problem too! Man, I think working on this site makes me smarter! biggrin.gif I had to go in and change a little of the php but I got it to work finally!)

-Bonnei
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here