掲示板

Portlet temporarily unavailable for special character document name upload

thumbnail
7年前 に Ujjainee Sarkar によって更新されました。

Portlet temporarily unavailable for special character document name upload

Regular Member 投稿: 127 参加年月日: 16/07/20 最新の投稿
I have a Liferay portlet which consists of a form through which I can upload documents. The functionality is working fine but whenever I’m trying to upload documents which have special character in there name the portlet is becoming temporarily unavailable. What should be done?
thumbnail
7年前 に David H Nebinger によって更新されました。

RE: Portlet temporarily unavailable for special character document name upl

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Stop doing that.

Seriously I think there's a not in the docs & media portlet during upload that states that doc names must be able to reference using a standard URL format because D&M exposes them that way.
thumbnail
7年前 に Ujjainee Sarkar によって更新されました。

RE: Portlet temporarily unavailable for special character document name upl

Regular Member 投稿: 127 参加年月日: 16/07/20 最新の投稿
Thank you David! I will then only upload documents whose names do not contain special characters.
thumbnail
7年前 に Olaf Kock によって更新されました。

RE: Portlet temporarily unavailable for special character document name upl

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
I think it still should (TM) work with non-ASCII characters in filenames. However, your original question sounds like you're implementing your own upload form and then store the document in Doclib. You might have some encoding issues, resulting in an exception to be thrown but not handled properly. In that case it should be enough to fix your upload handler to use the correct encoding and handle errors properly.