New features
Version 3.x > New features > Upload Multiple Files at Once View modes: 
User avatar
Member
Member
michael@110studios.com - 2/26/2008 8:34:55 PM
   
Upload Multiple Files at Once
My clients would find it very helpful if they could upload multiple files at one time (in one form submit). There are many third-party tools that allow for this, and it would be a great feature -- especially when trying to upload multiple photos for an e-commerce product.

Further, it would be just as useful to have the ability to resize image files on the server during the upload process.

I know that we can use "maxSideSize" in the querystring, but this does not work with lightbox. Thus to use lightbox, all images have to be at the desired size prior to upload. Many of my clients do not know how to resize images, and having a property that allows you to specify the file size in pixels prior to upload would be very helpful.

Is it possible to override the "CMSDesk_Content_NewFile" class so that I can make some of these changes myself?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/6/2008 4:09:41 PM
   
RE:Upload Multiple Files at Once
Hi,
Regarding to the file upload: Please see our developer's guide at http://www.kentico.com/docs/devguide/file_import.htm

Regarding to the image resizing - we are planning in some of the next version to improve the file and image management in CMS.

Thank you for your suggestion!

Best Regards,
Juraj Ondrus

User avatar
Member
Member
gary.chan-e-crusade - 10/22/2008 9:32:12 PM
   
RE:Upload Multiple Files at Once
Hi Juraj,

For the image resize part, since the function is not yet available, we have to use external library. How would you do that so on file imported, automatically call external program to resize it?

Best regards,
Gary

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/23/2008 3:56:54 AM
   
RE:Upload Multiple Files at Once
Hi Gary,

Unfortunately it is not possible to easy achieve the resizing "on the fly" when importing the images.

You can try to use custom eventr handler (http://www.kentico.com/docs/devguide/events_overview.htm) and handle the Data and/or TreeNode Handler and handle the event e.g. OnAfterInsert - you will need to get the data from the created document, resize them and save again.
It is not very nice solution but only one available at this moment. I hope it makes sense.


Best Regards,
Juraj Ondrus

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/24/2008 3:02:34 AM
   
RE:Upload Multiple Files at Once
Hi again,

I have an update for you. I am sorry but I was not aware of this option and also I have probably not understood your need right.

You can upload the images in original size. Then, you only need to change the maxidsize parameter in the lightbox transformation. For example:

<a href="<%# GetDocumentUrl() %>" rel="lightbox[group]" rev="<%# Eval("NodeAliasPath") %>" title="<%# Eval("FileDescription") %>"><img src="<%# GetFileUrl("FileAttachment") %>?maxsidesize=150" alt="<%# Eval("FileName") %>" /></a>

At the first load (view) of the image, it may take longer because the image is being resized. After this, the resized copy of the image is stored on the disk and it is used for next views.

I hope it will help and I am sorry for the confusion once again.

Best Regards,
Juraj Ondrus