Uploading Multiple Images to the Core Gallery at once
The DotNetNuke Gallery Module provides decent gallery performance, however I
know one thing that really annoys me is that you can only upload one image at a
time by default. This can be very cumbersome if you are trying to insert
multiple images at the same time. I have found that you can use the File
Manager utility to bulk load images to your gallery with much ease!
Prerequisites/Notes
To perform a bulk upload in this fashion you must have two different zip files for all images. The first zip file should contain your source, full sized images, the second zip should contain the images with the exact same file name, but resized to your "max size" values as defined in the gallery module. If you are looking for a tool to resize the images please see my "Image Shrinker" application in my software store linked above.
Also please note I am using DNN 4.4.1 to complete this tutorial and I
cannot promise that this will work correctly on all other versions.
Uploading the Images
To perform a bulk upload follow the below steps.
- Login as admin or host
- Select "Admin" -> "File Manager"
- Ensure that the files are all updated by checking the "recursive" box, then pressing "Synchronize Files"
- Click the "Upload" button
- Ensure that the "Decompress ZIP Files?" option is selected
- Ensure that the drop down indicates a folder Gallery/XXX/albumname. Where XXX is a number and albumnName is your desired album
- Use the "Browse" button to locate your zip file that contains the resized images
- Click "Save File" to upload and unzip the images
- Now click "Upload" again
- Ensure that the "Decompress ZIP Files?" option is selected
- Ensure that the drop down indicates a folder Gallery/XXX/albumname/_source. Again XXX is a number and albumname is your desired album
- Use the "Browse" button to location your zip file that contains the larger images
- Click "Save File" to upload and unzip the images
- Using File Manager you should delete both of the zip files you just uploaded
- Now, simply navigate to your gallery and you should see your images
- If the new images are not displayed select the "Maintenance" option, then press "Synchronize" then the images should appear
Conclusion and Comments
This isn't the best method to upload a large number of images, however with the out of the box gallery module I have found this to be quite helpful when working with 5 or more images. Using my "Image Shrinker" application makes this even easier by allowing bulk resizing of your intended gallery images. Please let me know if there are any questions or concerns.
Posted by Mitchel on Monday, February 26, 2007
Name (required)
Email (required)
Website