YAFLogo

SaiDon
  • SaiDon
  • 71% (Friendly)
  • YAF Lover Topic Starter
11 years ago
Dear all,

I cannot attach large file when posting on forum.

Please help me using attach feature to upload file about 10 MB

Thanks,

SaiDon

Sponsor
squirrel
11 years ago
You must alter web.config to allow large posts, then update YAF host settings with attachment size limit.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
SaiDon
  • SaiDon
  • 71% (Friendly)
  • YAF Lover Topic Starter
11 years ago

You must alter web.config to allow large posts, then update YAF host settings with attachment size limit.

Originally Posted by: squirrel 

Please help me step by step

squirrel
11 years ago
Modify web.config. Find Line that reads
<httpRuntime requestValidationMode="2.0"/>[/code] and add [code]maxRequestLength = "15360"[/code] to it.  A SAMPLE line would read:
[code]<httpRuntime requestValidationMode="2.0" maxRequestLength="15360" />

This will set the ASP.NET Maximum File Upload size to approx 15 mb...

Then you have to set YAF config:

Login as your superuser account. Go to Host Menu >> Host Settings Tab -- halfway down is entry for Max File Size (in KB) - set it to less than or equal to the number you use in your web.config. Restart YAF...


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend