Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - v7 file upload bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

v7 file upload bug

 Post Reply Post Reply Page  123>
Author
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Topic: v7 file upload bug
    Posted: 10 February 2003 at 9:22pm

borq my forum is doing it again, when i tried to upload a zip file it'll do as if i was trying to upload a pic.....

http://uz.dyndns.info:82/v7/



Edited by fernan82
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: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 10:52am

The file upload and image upload are two completly different files so it's almost impossible for the code to get mixed up.

I did look at your forum but didn't discover the problem myself.

Do you have more details such as web browser, editor used, which button you clicked on, file name upload, file type, etc.

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 11:45am
Well man its happening, i can tell what's causing it cuz it happens whenever it wants to do it....... it's not that the code is getting mixed up, but when you look at it on the WYSIWYG editor it looks like a white square, then if i hit the post button nothing comes up on the message body, but then if i look it in the database this is what it says on the message body: <A href="uploads/999_test.zip" target="_blank"></A>, and the file was uploaded it's didn't makes the hyperlink right...... if you don't believe and you still got your test forum look at my test post in your database and you'll see it has a code like that one..........

Edited by fernan82
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: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 11:49am

Looks more like a browser problem then with the insert link active x, this is why I probally can't replicate it in my own browser.

Which version of IE are you using and on what system.

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 11:57am

IE 6 on Win2k....

<edit> also my site is in my trusted zone w/ all the security settings to low.......



Edited by fernan82
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: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 12:14pm

Try replacing the JavaScript in the lines 193 to 199 of the upload_files.asp file that reads:-

<script  language="JavaScript">
 window.opener.frames.message.focus();
 window.opener.frames.message.document.execCommand('InsertImage', false, '');
 window.opener.frames.message.document.execCommand('createLink', false, '<% = strFileUploadPath & "/" & strFileName %>');
 window.opener.frames.message.document.execCommand('paste', false, '<% = strFileName %>');
 window.close();
</script>

With the following:-

<script  language="JavaScript">
 window.opener.frames.message.focus();
 var htmlLink= window.opener.frames.message.document.selection.createRange()
 htmlLink.pasteHTML('<a href="<% = strFileUploadPath & "/" & strFileName %>"><% = strFileName %></a>');
 window.opener.frames.message.document.execCommand('paste', false, '');
 window.close();
</script>

Back to Top
jatchoum.ca View Drop Down
Newbie
Newbie


Joined: 10 February 2003
Location: Canada
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote jatchoum.ca Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 12:34pm
Borg, is V7 Beta 3 that you are going to upload today will include the SQL version?
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2003 at 12:36pm
Alright, thanks, I changed it and so far it hasn't been doing it, i'll let you know if it does again.........
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 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 Notice

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 at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

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