掲示板

Portrait Image Uploading

thumbnail
12年前 に Udaya Ramakrishnan によって更新されました。

Portrait Image Uploading

Junior Member 投稿: 67 参加年月日: 11/09/07 最新の投稿
hi

i am using Liferay 6.0.6. In my application there are about 1000 users.
Each user likes to upload their images.
As Liferay instance is running on server side and the users entering their images on Client side, it is taking more time for uploading.
Also i have restrict the users not to upload an image more than 5MB.
if they upload a image more than 5MB, after a long time of uploading it is showing up the error message. This is because only Server side validation is happening.
Is there anyway to reduce the time for uploading?
or is there anyway to do Client side validation?


Thanks
Udaya.R
thumbnail
12年前 に Jignesh Vachhani によって更新されました。

RE: Portrait Image Uploading

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
you can modify LR existing code and can put client side validation for file upload.
you should use javascript file validation.
thumbnail
12年前 に Udaya Ramakrishnan によって更新されました。

RE: Portrait Image Uploading

Junior Member 投稿: 67 参加年月日: 11/09/07 最新の投稿
hi Jignesh,

I tried with Client-side Validation using java script. But for the script i need Active X control to be included in my browser.
If i include that control too, for each page loading it is asking me for changing security settings.
if any user change the settings in the browser, my code will result in failure.
So is there anyway of increasing the performance of uploading process?

Thanks
Udaya.R