Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryDownload Option ProblemDownload Option Problem
Previous
 
Next
New Post
11/19/2009 6:07 AM
 

Is there a way to ensure that the Download option takes the Image from "_source" folder rather than the "Gallery" folder? After all we get the thumbnail which we can right click and save and then the Slideshow / Popup which we can also right click and save - The download should com from the _Source or am I doing something wrong?

 
New Post
11/19/2009 8:40 AM
 

The module is designed to let you download the images that are only as big as the size that was configured in the settings for that module instance. I do see it could use the functionality you suggest, but it is not possible in its current state.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
11/19/2009 3:54 PM
 

So is there a setting that can be set to ensure that the download IS the from the _source directory? This is really important and your reply suggests a "nice to have" but not a solution -  I am a developer sois there somewhere in the source that can be tweaked to enure that the _source is the image to be downloaded?

 
New Post
11/19/2009 7:30 PM
 

 The logic to consider is:

  • Gallery has a storage limit
  • The DNN install has a file size upload limit
  • Each Gallery module instance has an image size limit.
    • When the _source file is bigger than the Gallery image size limit, it will be resized.

If you can control the size of _source files, then you can make the Gallery Size limit the same as the _source limit. And you will not need to change the code. Otherwise you will have to dig into the Gallery source code and change the logic to look into the _source folder for the right file. As I said, the current version does not have the functionality you are looking for.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
11/19/2009 11:41 PM
 

As Nestor indicated, download of the original, full-size image from the _source folder is not a option in the current version. I agree that it would be a good feature but due to bandwidth concerns for very large images should be one that can be enabled in the module configuration, not by default.

The code which generates the download link (using the core LinkClick file streamer) is found in the method GetDownloadURL beginning at line 649 in File.vb. Since only the FileID of the re-sized preview image is retained in the metadata, it would be necessary to modify the filepath to point to the _source folder then call the core method FileController.ConvertFilePathToFileId method to obtain the proper FileID to pass to the LinkClick method. Please note, however, that only image files have their original, full-size image retained in the _source folder. Flash and video files are uploaded only to the main folder of the gallery or child album and would have to use the existing code to generate their download urls.

As Gallery v 4.03.00 has now passed release testing, the source package is available for download and the most recent source code change set (same as package) is available on the project's Source tab - both at http://dnngallery.codeplex.com.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryDownload Option ProblemDownload Option Problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out