Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Save and overwrite a file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Save and overwrite a file

 Post Reply Post Reply Page  12>
Author
Ted Ljong View Drop Down
Newbie
Newbie
Avatar

Joined: 25 November 2003
Location: Sweden
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ted Ljong Quote  Post ReplyReply Direct Link To This Post Topic: Save and overwrite a file
    Posted: 29 December 2004 at 6:22am
Hi
Isnīt it possible to save/overwrite an existing file? I get this error messages.

Microsoft VBScript runtime error '800a004c'
Path not found
/admin/wwrichtextedit/RTE/RTE_popup_save_file.asp, line 179
 
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 10:08am
that is because the folder(s) the file is being saved to don't exist, make sure the path set in the RTE is correct. and have read/write permissions.
Back to Top
Ted Ljong View Drop Down
Newbie
Newbie
Avatar

Joined: 25 November 2003
Location: Sweden
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ted Ljong Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 11:32am
When I save the file with another name it works ok but not when I save with the same name as an exising filename. The map exist and it has r/w permissions.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 11:49am
no you can't overright a file, sorry i mis read your first post, you could do a check before actual upload, if file exists delete the original file  then upload new one.
Back to Top
Ted Ljong View Drop Down
Newbie
Newbie
Avatar

Joined: 25 November 2003
Location: Sweden
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ted Ljong Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 12:04pm

Is there a built in function somewhere for deleting files?

 
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 12:16pm
i don't think so. you need to do so via the FSO objects. you can find details on FileExists, Deleting on the following website

http://www.devguru.com/Technologies/vbscript/quickref/vbsc ript_list.html
Back to Top
Ted Ljong View Drop Down
Newbie
Newbie
Avatar

Joined: 25 November 2003
Location: Sweden
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ted Ljong Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 12:27pm
Ok
Thanks for your answers, I appreciate it
Happy New Year / Ted
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2004 at 2:36pm
You can over write existing files but you need to tell the RTE to do so in the setup file.

Also you need to have modify permissions on the directory the file is to be saved to as well as write permissions
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.