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 ForumsForumForumAttachment Size SettingAttachment Size Setting
Previous
 
Next
New Post
8/18/2010 4:34 PM
 
I am trying to adjust the maximum attachment size for some forums and the setting in the attachment section of the administration screen does not seem to change the behavior. It looks like the default 256K size is not being changed. It is defined as 256K in the class

DNN: DotNetNuke Community Edition5.4.4
Forum: 4.6.0

I upgraded to version 4.6 to fix the issue where a user restricted to only replying to an existing post could not unless you also included the start new thread permission which we don't want to do.

Has anyone else found this issue. I am over looking something?

I have set the maximum upload file size to over 8 MB

I have successfully uploaded a file > 3MB using the HTML document manager without an issue.

Thank you,

Ken

 
New Post
8/19/2010 8:47 AM
 
Uploading files using the Telrik editor have its own restriction on file size by 4MB.  It could be changed in the Providers folder you can find in the root path by modify the defautlt.xml file.

Due to the webconfig file you should also add a executionTimeout="3600" (value must be high enought) to the handler on uploading larger files.  If this is missing, you want get a timeout issue on upload.
 
New Post
8/20/2010 9:41 AM
 
Thank  you for the note on the Telrik editor and the timeout setting in the webconfig file.  I did the set the timeout to 3600 and the same error message comes back very quickly.  I believe the default value in the config class is not being changed when the file is uploaded by the attachment controller since it is comparing to the Config.txtMaxAttachmentSize  property and I did not see anywhere else that being changed. Not totally sure of where the value in Config module would get changed.


AttachmentControl.ascx.vb - line 268

Protected Sub cmdUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.Click
Try
' if no file is selected exit
If fuFile.PostedFile.FileName = String.Empty Then
Exit Sub
End If

If fuFile.PostedFile.InputStream.Length > (objConfig.MaxAttachmentSize * 1024) Then
lblMessage.Text = Localization.GetString("MaxFileSize", Me.LocalResourceFile) + objConfig.MaxAttachmentSize.ToString() + " KB"
Exit Sub
End If
 
New Post
8/22/2010 11:06 PM
 
I found a similar issue w/ the avatar control recently while testing, which I bet is the same problem the attachment control has. If I am correct, it is a bug and I will have to include a fix in the next build. 

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
8/23/2010 9:50 PM
 
RE: Avatar uploading

I saw your post and did not put the two together, but now you mention it, that does sound like the same issue. I don't know the code very well, but it appears that the setting is being saved in a database table but not pulled from the DB when the config object is being constructed.

Is there a procedure for submitting a bug/issue?

Thank you,

Ken
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumAttachment Size SettingAttachment Size Setting


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