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 ForumsGalleryGalleryError when uploading swf moviesError when uploading swf movies
Previous
 
Next
New Post
6/11/2012 4:42 AM
 

Hi Folks.

After a long time (and a crashed server last year) i'm back and just restarting my website with DNN 6.2 and the latest Gallery module.

On my test machine (a high power notebook with win 7 Enterprise) everything is running fast and without probs but the gallery module.
As i'm working locally there are of course no issues with timeouts ;-)

I can add and view pictures but not videos.

I added in the web.config under
<system.webserver>

    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="100000000" />
      </requestFiltering>
    </security>

and changed also

    <httpRuntime useFullyQualifiedRedirectUrl="true" executionTimeout="300" maxRequestLength="100000" requestLengthDiskThreshold="8192" requestValidationMode="2.0" />

and of course in the gallery settings itself.

When adding a swf-file with 40 MB it appears in the list of pending uploads and in the corresponding folder testdnn\Portals\0\Gallery\466 there is "my file" with size 0.

When clicking on Upload Pending Files i receive

Upload Error: An error occured while attempting to process the uploaded file 91778870.swf

in red.

The last log-entry:

2012-06-11 10:37:47,608 [NB_KJO][Thread:25][ERROR] DotNetNuke.Modules.Gallery.GalleryUploadCollection - Auf eine geschlossene Datei kann nicht zugegriffen werden.
System.ObjectDisposedException: Auf eine geschlossene Datei kann nicht zugegriffen werden.

In english this means: not possible to access a closed file.

Aha....normally i know about probs accessing OPEN files but never heard about CLOSED files.

I'm really confused.

What to do?

 

 
New Post
6/11/2012 7:19 AM
 

Try increasing the requestLengthDiskThreshold up to 100000 in the <httpRuntime> element:

requestLengthDiskThreshold="100000"

As I recall because of the way that Gallery uploads files using the HTTP file upload <input . . . /> tag without any buffering of the input stream it is necessary for the requestLengthDiskThreshold value to match that of the maxRequestLength.

For large file upload you might also find it better to FTP the file into the proper Gallery folder then use the Gallery's file maintenance, re-sync command to recognize that the file has been uploaded.


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
 
New Post
6/11/2012 9:53 AM
 

Bill,

thanks for your quick response, both ways are working at least for 80%.

The first solution is a little strange for me, as i've read somewhere else, that the second value should stay at 8192 due to the block size for HTTP-transmission or something like that. However....

Thesecond one is even easier for me as the server is in my LAN available and i can just copy the files.

But the last 20% to full satisfaction are missing:
- how can add a thumbnail for each video (or is the Gallery Module extracting the thumbnail from the first frame?)
- the videos are working now but after the second sync (because of adding a second file) the list of the files in the album became empty, allthough the files are still working

Must i copy the files to the Gallery Folder e.g. 466 oder into the _source folder underneath?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryError when uploading swf moviesError when uploading swf movies


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