|
| Index | Recent Threads | Unanswered Threads | List Polls | Public Albums | Who's Online | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 10 |
|
| Author |
|
|
mvnForum Developer Vietnam Joined: Oct 16, 2002 Post Count: 2956 Status: Offline |
Hi all, mvnForum RC1 supports attachment and the url to download looks like this www.mvnforum.com/mvnforum/getattachment?attach=1 The problem is it always return the name getattachment, and I dont know how to return the real filename of it. I guess this is a HTTP related issue, but dont know how to do Thanks all ---------------------------------------- Minh Nguyen mvnForum Developer Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com http://www.DienDanLinux.org |
||
|
|
mvnForum Developer Joined: Feb 27, 2003 Post Count: 185 Status: Offline |
Check out CVS. I have implemented this and commited few minutes ago! Dejan |
||
|
|
mvnForum Developer Vietnam Joined: Oct 16, 2002 Post Count: 2956 Status: Offline |
Thanks, it works well ![]() ---------------------------------------- Minh Nguyen mvnForum Developer Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com http://www.DienDanLinux.org |
||
|
|
Newbie ![]() Joined: Jun 27, 2003 Post Count: 32 Status: Offline |
Did you use the Content-Disposition header? It should look like this as far as i remeber: Content-Disposition: attachment; filename=thisorthat.zip I already had some troubles with that. Some browsers are somewhat stupid, and still would use the filename from the URL "getattachment". Only way to fix this is using some weired URL like /mvnforum/getattachment/123/thisorthat.zip and 123 is the ID of the attachement. ---------------------------------------- [Edit 1 times, last edit by skoehler at Jul 12, 2003 6:06:19 PM] |
||
|
|
mvnForum Developer Vietnam Joined: Oct 16, 2002 Post Count: 2956 Status: Offline |
Thanks skoehler for your suggestion, but I think we should keep it (that is, a low priority task). We should get more feedback from the community ---------------------------------------- Minh Nguyen mvnForum Developer Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com http://www.DienDanLinux.org |
||
|
|
Newbie ![]() Joined: Jun 27, 2003 Post Count: 32 Status: Offline |
Do i guess that the Content-Disposition header is used, right? |
||
|
|
mvnForum Developer Joined: Feb 27, 2003 Post Count: 185 Status: Offline |
Yes. Content-Disposition header is used. Here is the line that fixed this bug: response.setHeader("Content-Disposition", "attachment; filename=" + attachBean.getAttachFilename());With this line, correct filename if used when downloading. Works with latest Explorer and Mozilla versions. Dejan |
||
|
|
Stranger Joined: Feb 14, 2005 Post Count: 7 Status: Offline |
Hi, develpers, I just installed latest version 1.1, but I have this issue too, all the file name is getattachment. I did find this issue here, any idea of it? |
||
|
|
Stranger Joined: Feb 14, 2005 Post Count: 7 Status: Offline |
oh, i found the problem only happened with chinese file name |
||
|
|
mvnForum Developer Vietnam Joined: Oct 16, 2002 Post Count: 2956 Status: Offline |
oh, i found the problem only happened with chinese file name Yes, this bug is noted and will be fix soon ![]() ---------------------------------------- Minh Nguyen mvnForum Developer Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com http://www.DienDanLinux.org |
||
|
|
|
|
|
Current timezone is GMT Jan 8, 2009 4:21:04 PM |



