can't remove/upload image sometime

Last post 05-08-2013, 9:17 AM by deniyaltandel. 4 replies.
Sort Posts: Previous Next
  •  05-06-2013, 9:31 AM 77355

    can't remove/upload image sometime

    Hello Sir,

    I hvae tried to reomve image but i can't. it's work fine but sometime  it's generate error. and i have also provide full permission on directory.

     

    Error Masage : 

    ----------------------------------- 

    Persits.Upload.1 error '800a001d'

    Access is denied.

    /edit-banner-campaign.asp, line 252 

     

     Regarads,


     Deniyal 

    Filed under:
  •  05-06-2013, 12:40 PM 77362 in reply to 77355

    Re: can't remove/upload image sometime

    Hi deniyaltandel,

     

    Asp uploader has not the remove image function. Did you got error with your own code? Can you explain your issue in detail?

     

    Regards,

     

    Ken 

  •  05-06-2013, 1:06 PM 77365 in reply to 77362

    Re: can't remove/upload image sometime

    Hi ken,

    Thanks

     

    Set Upload = Server.CreateObject("Persits.Upload")

    'Delete file trough uploader
    if Upload.FileExists(folderpath &"\"&filepath) then
        Upload.DeleteFile folderpath &"\"&filepath
    End if

     

    But when i have removed file from directory. It's remove well  but  get error sometimes  as above.

    Plese see my code for delete file. 

  •  05-07-2013, 12:23 PM 77374 in reply to 77365

    Re: can't remove/upload image sometime

    hi deniyaltandel,

     

    1. Ensure that you have not other code using the file before you remove it by the uploader code.

     

    2. Try give the full permission to user "Everyone" of this folder.

     

    3. It like that the delete function is your own method, so should be not the permission issue of the uploader.

     

    Regards,

     

    Ken 

  •  05-08-2013, 9:17 AM 77387 in reply to 77374

    Re: can't remove/upload image sometime

    Thanks , Ken


    It's Work .

     


View as RSS news feed in XML