Print Page | Close Window

Forum Upload fails if quote in file name

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=14960
Printed Date: 13 April 2026 at 6:52am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Forum Upload fails if quote in file name
Posted By: jpullam2
Subject: Forum Upload fails if quote in file name
Date Posted: 05 May 2005 at 6:13pm
Windows allows users to create filenames with imbedded quotes. For example Captain's Committee.doc is a valid name. If you select that file when doing an upload, the upload fails.
 
Some users report that the name field just goes blank; I have received a runtime error.
 
I realize that this is not a great naming practice, but users do what they do.
 
Any idea how to fix this problem?
 
Using 7.9 with Persits ASPUpload.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 06 May 2005 at 6:02am
Try a different upload component

-------------
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: jpullam2
Date Posted: 06 May 2005 at 8:51am
Unfortunately that is the componenent that the ISP supports and it is unlikely that I can change it without evidence that there is a clear problem with it.
 
Is this a unique problem to Persits AspUpload?
 
For what it's worth, I receive an error in the following script in upload_files.asp:
 
<script  language="JavaScript">
 window.opener.document.getElementById("message").contentWindow.focus();
 var htmlLink = window.opener.document.getElementById("message").contentWindow.document.selection.createRange()
 htmlLink.pasteHTML('<a href="/forum/upload/jpullam/2005-05-06_064103_test_'_file.doc">2005-05-06_064103_test_'_file.doc& lt;/a>');
 window.opener.document.getElementById("message").contentWindow.document.execCommand('paste', false, '');
 window.close();
</script>
 
The error points to the imbedded single quote in the URL.



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