| Author |
Topic Search Topic Options
|
fernan82
Mod Builder Group
Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
fernan82
Mod Builder Group
Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
fernan82
Mod Builder Group
Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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>
|
|
|
 |
jatchoum.ca
Newbie
Joined: 10 February 2003
Location: Canada
Status: Offline
Points: 12
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2003 at 12:34pm |
|
Borg, is V7 Beta 3 that you are going to upload today will include the SQL version?
|
 |
fernan82
Mod Builder Group
Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
|
Post Options
Thanks(0)
Quote Reply
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.........
|
 |