Search
 

Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Image Field Questions
Last Post 06-26-2009 02:13 PM by gbrown. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jyoungUser is Offline
skipping stones
skipping stones
Posts:8
Avatar

--
06-18-2009 06:41 PM

    I just bought DF 3 and have some questions.

    I have a table I want to upload a picture to. The table has three columns - postID (PK), userid, and picture. I think I can get DF to do the upload to the external table. My question is I want to then access the picture field from another module. When I query the picture field what I am going to get - the thumbnail or the full size image?

    Second - is there any way to limit the size and/or dimensions of uploaded images?

    Third - is it possbile to link DF with the sqlgridselectedview module like you have done with OWS & Indoogrid?

    Thanks

    David ToUser is Offline
    river guide
    river guide
    Posts:2736
    Avatar

    --
    06-19-2009 09:04 AM

    HI,
    1) when you query the picture field, you should get the path of the file (the full directory path / or just filename of the picture) so that by clicking on it it will display in a browser window. If you check your SQL table, you will see how it's storing the data.
    2) There should already be a setting in the web.config which controls the maximum file size. This is the setting the module is going to use, and also the setting that other areas of DNN should use I believe (such as if you tried to upload a file too large under Admin, File Manager)
    3) yes, DF can be tired to OWS / Indoogrid. See our Demos 21 tutorial.

    -- David

    jyoungUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    06-19-2009 11:03 AM
    If I understand correctly the setting in the web.config is for all uploads. So if you set this for a normal size picture - say 3 to 400k - then when you want to upload a .zip file or a large doc you will be unable to.

    Depending on your solution users are more likely to upload many more pictures than they will docs and since you have average users taking pictures with 10mp cameras it makes sense for you to limit the size of image uploads. It would be nice to be able to do this without also limiting other upload types at the same time.
    David ToUser is Offline
    river guide
    river guide
    Posts:2736
    Avatar

    --
    06-25-2009 03:01 PM

    HI, I don't know how to get around this issue. After googling, I found out that the bottleneckt is IIS. It has 2 parameters that govern this: MaxRequestLength and RequestTimeOut.

    In web.config the upload size is limited to 8MB
    httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192"

    You can change those parameters to allow larger uploads, 20480 would be 20MB

    httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="20480" requestLengthDiskThreshold="20480"
    ====
    However, I can't find any solution / configuration to set different file size uploads for different file types. Perhaps a separate, custom DNN module somewhere out there can do this (Repository module). -- David

    gbrownUser is Offline
    skipping stones
    skipping stones
    Posts:12
    Avatar

    --
    06-26-2009 02:13 PM
    The Fatgeorge upload control for Xmod can limit the size of uploads separate from the webconfig. Don't know how he did it though.

    It can also auto resize the image, autocreate thumbnails, watermarks, disk quotas, etc.

    I do believe that Ultra Media Gallery has upload limits separate from the webconfig too.

    Greg
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way

     

     

       
    Subscribe Me
     
    Copyright 2005 - 2011 by Data Springs, Inc.