MyBB Community Forums

Full Version: Attachments not showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'll start by saying I've read (and reread) all the posts related to this problem and have tried nearly all of the solutions with no success.
The problem is that I need to have members able to upload audio files as attachments in their posts. The files (even compressed) are approximately 3MB.
I'm able to attach text and jpeg images, but the audio attachments don't appear in the actual post. (they appear to upload, but don't show in the thread).
I note that the maximum upload/postsize is set at 2M/8M. Is this the problem?
My server's php filesize is set to 4M.
My website is: www.adelaideguitarforum.com (it's less than a week old)
If you wish, you can register there and try to post an audio file: mp3, mp4 etc.
My attachments all have the correct extensions, mime types and maximum size set to 3.91MB (larger than the attachment I'm trying to upload).
Hope somebody can help solve this problem.
(2014-07-17, 10:38 AM)Harry Biggles Wrote: [ -> ]Hi,
I'll start by saying I've read (and reread) all the posts related to this problem and have tried nearly all of the solutions with no success.
The problem is that I need to have members able to upload audio files as attachments in their posts. The files (even compressed) are approximately 3MB.
I'm able to attach text and jpeg images, but the audio attachments don't appear in the actual post. (they appear to upload, but don't show in the thread).
I note that the maximum upload/postsize is set at 2M/8M. Is this the problem?
My server's php filesize is set to 4M.
My website is: www.adelaideguitarforum.com (it's less than a week old)
If you wish, you can register there and try to post an audio file: mp3, mp4 etc.
My attachments all have the correct extensions, mime types and maximum size set to 3.91MB (larger than the attachment I'm trying to upload).
Hope somebody can help solve this problem.

I get the follow
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
but I would up your post size from 4mb to say 100mb .... as I do not have an mp3 file smaller than 4mb
Thanks for looking at the problem. I'll increase the post size on my server, but I still can't upload audio files as small as 3mb. Is there a setting (or script) to allow these type of files (and size) to upload to threads?
Hi All,
I've eventually solved this problem and thought it might help others with problems uploading large files into threads if I gave a step-by-step solution to the problem.
#1. Start by going to Configuration/attachment types
#2. Check if your Attachment Type is in the list of Extensions. (If it is then check (use the edit button) that the Maximum File Size is below the 'Upload Maximum File Size' read #4. below.
#3. If it isn't, then use the 'Add New Attachment Type' tab and add your attachment to the list (You'll see a helpful link to a list of attachments and matching MIME types on the same page). e.g. if you wanted to be able to add an MP4 Audio file to your attachments you would need to add mp4 (without a dot) as the file extension, and the MIME type of 'video/mp4'.
#4. Now enter the Maximum File Size you need (in kilobytes) for this attachment. (If it shows that your Upload Max File Size (the greyed out lettering in that section) is below what you need for your attachment then you'll need to get onto your server. (more about that in a moment).
5. Don't worry about the Attachment Icon, it's only window dressing.
6. Click 'Save Attachment Type'.
7. You should be returned to your Attachment Types page. So check that your new extension and MIME type are in the list.
--- (I'll quickly mention that some Attachment Extensions have several MIME Types, be sure to cover your bets by repeating the process with each paired Extension and its MIME Type.)
Now go to your site's homepage, logon or refresh the page if you're already logged on, and try uploading the attachment. If it works all is well. If it doesn't then the problem is most likely with your server, so here's what to do:
Contact your server using their inbuilt support system (normally a Trouble Ticket) and ask them, nicely, to increase your max upload file size variable to 50MB or a 100MB. (This is in their php.ini file and only they can alter it). You can also, nicely, ask them to check that the following line is included in your .htaccess file: suPHP_ConfigPath/home/YOUR USERNAME FOR THE SERVER/public_html
e.g. suPHP_ConfigPath/home/smithy/public_html
You need that line in .htaccess in order for the php.ini file to be active.
If they can't increase the Max upload file size, then you are kinda stuffed. Possibly change to a new server?
If they can, then repeat the process of editing your Extension, this time (If they've done the job right) you should see that the greyed out area which shows your 'Upload Max File Size' has increased to the size you want. You can now increase the Maximum Attachment size as in #4 above.
I hope this helps others,
All the best. Cool
(2014-07-18, 03:04 PM)Harry Biggles Wrote: [ -> ]Hi All,
I've eventually solved this problem and thought it might help others with problems uploading large files into threads if I gave a step-by-step solution to the problem.
#1. Start by going to Configuration/attachment types
#2. Check if your Attachment Type is in the list of Extensions. (If it is then check (use the edit button) that the Maximum File Size is below the 'Upload Maximum File Size' read #4. below.
#3. If it isn't, then use the 'Add New Attachment Type' tab and add your attachment to the list (You'll see a helpful link to a list of attachments and matching MIME types on the same page). e.g. if you wanted to be able to add an MP4 Audio file to your attachments you would need to add mp4 (without a dot) as the file extension, and the MIME type of 'video/mp4'.
#4. Now enter the Maximum File Size you need (in kilobytes) for this attachment. (If it shows that your Upload Max File Size (the greyed out lettering in that section) is below what you need for your attachment then you'll need to get onto your server. (more about that in a moment).
5. Don't worry about the Attachment Icon, it's only window dressing.
6. Click 'Save Attachment Type'.
7. You should be returned to your Attachment Types page. So check that your new extension and MIME type are in the list.
--- (I'll quickly mention that some Attachment Extensions have several MIME Types, be sure to cover your bets by repeating the process with each paired Extension and its MIME Type.)
Now go to your site's homepage, logon or refresh the page if you're already logged on, and try uploading the attachment. If it works all is well. If it doesn't then the problem is most likely with your server, so here's what to do:
Contact your server using their inbuilt support system (normally a Trouble Ticket) and ask them, nicely, to increase your max upload file size variable to 50MB or a 100MB. (This is in their php.ini file and only they can alter it). You can also, nicely, ask them to check that the following line is included in your .htaccess file: suPHP_ConfigPath/home/YOUR USERNAME FOR THE SERVER/public_html
e.g. suPHP_ConfigPath/home/smithy/public_html
You need that line in .htaccess in order for the php.ini file to be active.
If they can't increase the Max upload file size, then you are kinda stuffed. Possibly change to a new server?
If they can, then repeat the process of editing your Extension, this time (If they've done the job right) you should see that the greyed out area which shows your 'Upload Max File Size' has increased to the size you want. You can now increase the Maximum Attachment size as in #4 above.
I hope this helps others,
All the best. Cool

not every one suffers from the problems with hosting companies (e.g vps) where you have more control over your server config and do not need .htaccess to config the max upload file size ... however great you fixed it