| Author |
Topic Search Topic Options
|
haj282
Newbie
Joined: 10 May 2003
Location: China
Status: Offline
Points: 6
|
Post Options
Thanks(0)
Quote Reply
Topic: about upload files with components Posted: 10 May 2003 at 9:01am |
For example, I upload a file named "asiagame[1][1].rar"
but the link change to http: //.../upload/asiagame11.rar
so when I click the link , I can't open the uploaded file
It show me "The page can't be find."
I wonder how can I deal with this ?
I have tested two of the file components:Dundas Upload and AspSimpleUpload
They are all like what I said,What can I do ? Thx!
Edited by haj282
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 2003 at 10:25am |
|
Square brackets are removed from file names for security reasons, you will have to rename the file before you upload it.
|
|
|
 |
Mattblack
Groupie
Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2003 at 7:38pm |
Bruce, bringing this back into the light.
Im having the same problem with files and images uploaded. Is there any way of stoping the brackets being removed? Mine doesnt like normal brackets, not just square ones. Its nothing to do with the uploading for me though, i could insert and image called image.jpg and it would work, but image(1).jpg doesnt. It also removes brackets from URL links, not just images. How can i get around this?
Cheers,
Matt
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2003 at 7:15am |
|
You can't use () or [] and a few other things in image and file links,
the reason for this is that it allows hackers to enter XXS which can do
things like hang the users OS's or browser, redirect to other sites,
etc.
|
|
|
 |
Mattblack
Groupie
Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2003 at 7:22am |
No worries.
Do you have a definitive list of characters that are removed?
Also, can you disable the feature?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2003 at 7:41am |
|
Have a look at the formatLink function in the functions_filters.asp file
|
|
|
 |
Mattblack
Groupie
Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2003 at 1:28pm |
Bruce,
I'm using 6.34. I never managed to migrate to version 7. The problem for me was that ive changed loads of code and also the style, so it was hard to get the changes accross, i like 6.34 anyhow.
Which file does the conversion in 6.34?
Ta
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2003 at 1:30pm |
|
Not even sure if there is any convertion in 6.34 as it is very old now
and no longer supported as you should upgrade to the latest version
just for security reasons as there are a number of known security holes
in 6.34
|
|
|
 |