Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Attach files problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ciacho
Newbie
Newbie
Avatar

Joined: 27 October 2008
Location: Poland
Online Status: Offline
Posts: 1
Posted: 27 October 2008 at 1:53am | IP Logged Quote ciacho

Hi,

When I try to attach file in New message i got
this error:

An unknown file upload error occurred.

This error popup when i click Attach button.

What should I do?
Back to Top View ciacho's Profile Search for other posts by ciacho
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 27 October 2008 at 2:40am | IP Logged Quote Andrew

Most probably, the issue is caused by insufficient permissions. The following part of the new FAQ (will be published soon) would be useful to you:

ASP.NET version of MailBee WebMail:
Quote:
3. Administration settings disappeared / are not saved. Why?
Common reason of settings not being saved is ASPNET (ASP.NET Machine Account) or NETWORK SERVICE account has insufficient permissions to the data folder. Please complete the steps below to grant the appropriate permissions:

    * using Windows Explorer, navigate to the folder which contains the data folder;
    * in context menu, choose "Properties" of the data folder and "Security" tab;
    * add ASP.NET Machine Account (ASPNET) and NETWORK SERVICE into the list;
    * tick "Allow full control" checkboxes for both added accounts to grant permissions and press "OK".

For Windows 2003 Server with IIS 6, the ASP.NET user account can differ from ASPNET or NETWORK SERVICE. To determine right user account under Windows 2003 Server, follow the steps below:

    * Run Internet Information Services Manager;
    * In <SERVER_NAME>/Web Sites/<WEB_SITE_NAME>/, look for the WebMail application directory and choose its properties (click "Properties" in context menu);
    * In "Virtual Directory" tab, remember the "Application name" value (it's the name of application pool you need);
    * In <SERVER_NAME>/Application Pools/, look for the application pool which name you remembered and choose its properties;
    * In "Identity" tab, you can see the system account name which is the ASP.NET user account you need.


4. Error while attaching files to new message. Please advice.
Typical problem with attachments is insufficient permissions for attachments folder ("Path For Upload Attachments" defined in Administration panel). See topic #3 to learn how to grant necessary permissions.

Also, if you use IIS 6, size of a file that can be uploaded onto the server is limited to 200K by default. You can increase this limit according to you needs. To do this, type "notepad %WINDIR%\system32\inetsrv\MetaBase.xml" in command line, search for the "AspMaxRequestEntityAllowed" property, and specify necessary size in bytes, then save this file. Please note, "Enable Direct Metabase Edit" must be turned on, in other case, you will be not able to edit this file. To check this option, look at your web host properties in Internet Information Services (IIS) Manager.


PHP version:
Quote:
3.1. Administration settings disappeared / are not saved. Why? (Linux/Apache only)
This means Apache process (which executes WebMail) has insufficient permissions to the WebMail PHP data folder (its location is specified in inc_setting_path.php file). If the Apache process is owner of all contents of the data folder, you should assign the following permissions:


755 for the data folder and all subfolders
644 for all files in the data folder and all subfolders.


If you have SSH or direct access to your server, you can do this as follows:
Navigate to the WebMail data folder to make it the current folder;
Run find . -type d -exec chmod 755 {} \;
Run find . -type f -exec chmod 644 {} \;


Otherwise, you can manually assign these permissions through FTP (most FTP clients and servers support remote assigning of permissions).

If the Apache process is not owner of all contents of the data folder, the permissions should be:
777 for the data folder and all subfolders

666 for all the files in the data folder and all subfolders.


3.2. Administration settings disappeared / are not saved. Why? (Windows/IIS only)
This means Internet Guest Account on your server has insufficient permissions to the WebMail data folder (its location is specified in inc_setting_path.php file). Please complete the steps below to grant the appropriate permissions:

    * using Windows Explorer, navigate to the folder which contains the data folder;

    * in context menu, choose "Properties" of the data folder and "Security" tab;

    * add Internet Guest Account (usually IUSR_<SERVER_NAME>) into the list;

    * tick "Allow full control" checkbox to grant permissions and press "OK".


4. Error while attaching files to new message. Please advice.
Common problem with attachments is insufficient permissions for attachments folder which is located in the data folder. Please refer to topic #3 to learn how to grant necessary permissions.

Another typical reason of this issue is that attachments size is limited in PHP configuration. To increase the limit, open your php.ini file and locate the following lines:

upload_max_filesize = 2M
post_max_size = 8M

You should set these limits according to your needs, but post_max_size should be equal to at least upload_max_filesize * 2.

Also, if you use IIS 6, size of a file that can be uploaded onto the server is limited to 200K by default. You can increase this limit according to you needs. To do this, type "notepad %WINDIR%\system32\inetsrv\MetaBase.xml" in command line, search for the "AspMaxRequestEntityAllowed" property, and specify necessary size in bytes, then save this file. Please note, "Enable Direct Metabase Edit" must be turned on, in other case, you will be not able to edit this file. To check this option, look at your web host properties in Internet Information Services (IIS) Manager.



Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide