Print Page | Close Window

about upload files with components

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2577
Printed Date: 07 April 2026 at 6:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: about upload files with components
Posted By: haj282
Subject: about upload files with components
Date 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!




Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mattblack
Date 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



Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mattblack
Date 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?



Posted By: WebWiz-Bruce
Date Posted: 29 December 2003 at 7:41am
Have a look at the formatLink function in the functions_filters.asp file

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mattblack
Date 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



Posted By: WebWiz-Bruce
Date 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

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net