Foros de discusión

Portrait Image Uploading

thumbnail
Udaya Ramakrishnan, modificado hace 12 años.

Portrait Image Uploading

Junior Member Mensajes: 67 Fecha de incorporación: 7/09/11 Mensajes recientes
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
Jignesh Vachhani, modificado hace 12 años.

RE: Portrait Image Uploading

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
you can modify LR existing code and can put client side validation for file upload.
you should use javascript file validation.
thumbnail
Udaya Ramakrishnan, modificado hace 12 años.

RE: Portrait Image Uploading

Junior Member Mensajes: 67 Fecha de incorporación: 7/09/11 Mensajes recientes
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