Previous Thread
Next Thread
Print Thread
Hop To
#261264 04/06/2018 6:30 AM
Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
I am having difficulty successfully attaching videos to my posts. While I can attach them, they do not successfully open (error message in video player) or save (file size is zero). The file extension is allowed and is under the file size limit. The file gets successfully uploaded as i can see it in FTP.

I do not have the same problem when attaching text, music or picture attachments. Only seems to be with video. You can see my problem here in this test post on my site: http://specialtactics.com/forums/ubbthreads.php/topics/3581/test-post-ignore.html#Post3581

What is going on? Thanks.

Travis

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
check this:
Control Panel / Features -Tab- Attachments
Recheck all paths and then click on the test directory link under the top path field.
It should report:

Directory exists and is writeable.

Test passed.

If not then either paths are wrong or you need to ftp and change the folder permissions.

What it does is write a test.php file to that folder.
Not sure about this version but in prior versions that test file was required for it to work.
But when the paths are correct it will write the test file to the folder.

Last edited by Ruben; 04/06/2018 2:44 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by Ruben
What it does is write a test.php file to that folder.
Not sure about this version but in prior versions that test file was required for it to work.
But when the paths are correct it will write the test file to the folder.

This is still correct for the 7.6.x series

Testing video attachments here on UBBCentral:
(I had to dig really far back in time to find a small mp4 video file.)
Attachments
MTVInterlude1.mp4 (1.61 MB, 14 downloads)


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
I've just posted an MP4 video to your website at
http://specialtactics.com/forums/ubbthreads.php/topics/3585/video-testing.html

This video downloads and plays just fine.

If you've followed Ruben's directions, I believe you've fixed the error. thumbsup


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
This is what has always bugged me.
You offer a resolution.
And never hear back if it worked or not.
Or they found another issue they resolved on their own.

You would think after almost 20 years I would be used to it.
But NOT!!!!

Last edited by Ruben; 04/06/2018 6:15 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
Thanks for the feedback and suggestions. I do not check this forum hourly so i apologize if you were expecting immediate feedback.

The 'test directory' passed. So I am not sure where the error exists. In FTP, i see the files in the directory properly uploaded.

Isaac- How were you able to attach a video that worked while mine did not? I am assuming we utilized the same process to upload, so i am at a loss on where the issue is.

Thanks for the help on this gents.

Travis

Last edited by F27Corsair; 04/07/2018 10:18 AM.
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I just registered and tried a attachment and it works for me.
One Item I did notice it seems to be very slow uploading so possibly you clicked on done before it completed.
Also it took a few moments before it would let me download the attachment.

Replies are turned off on your original link.
So I would compare the permissions between the two forum.
The test link forum in your initial post and the one that isaac and I used.

I did not use drag and drop for file selection I used browse.

FYI,
You can delete my post after testing.

Last edited by Ruben; 04/07/2018 11:04 AM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I noticed you still are trying the same file .
Maybe it is time to consider that something is wrong with that file.
it could be codecs but it still shows 0 bytes .
Try another file.

For thrills email me the file.
I w8ll send a pm.

Last edited by Ruben; 04/07/2018 2:06 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
This is really odd and frustrating. I try to do the same thing as a reply in your guys' same thread so the permissions are the same.. My file is 62.9MB large, so just under the limit but only takes about 10-15 seconds to upload. I still cant open it.

I also tried changing to another username and changing my default video opening program. Also tried Chrome Incognito Mode. Also tried different files, the other being about 50MB. Nothing is working. And this is only an issue w/ videos.

Your guys' files open fine for me.

Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
I just sent you the two links that are the files that were uploaded to my site utilizing the attachment feature. When i give you the direct links, downloading them works as normal! But for some reason not on the forums.

Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by F27Corsair
My file is 62.9MB large,

The TOP LIMIT of file size is actually set by your server config with php.ini.

For example (see attached screenshot) The Administrators group is saying that it will allow 100M attachments, but the description above says that the php.ini on the server will only allow 20M. So the limit is actually only 20M. The end result of attempting to upload anything beyond the php.ini 20M setting is that nothing gets stored, and you are left with a zero-byte file.
Attachments
20180407_11-12-59.PNG


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
This is what my forum control panel shows from that same screen shot:

If file attachments are enabled in the forum, this limits the maximum number of bytes for each file attachment.
• Max size (upload_max_filesize) set in your php.ini is 67108864 bytes (64M). You may not exceed this size

My FTP shows they are getting uploaded just fine- everytime i utilize the attachment function.

But you may be onto something. Your guys' files have been under 20MB. Mine have been over 40MB. But shouldn't they still work regardless based off of the info above?


EDIT: I just attempted to upload one of your guys vids and it worked. It appears to be a size issue
Travis

Last edited by F27Corsair; 04/07/2018 2:26 PM.
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
There you go.
Talk to your host.
Can't help with limited data from you to work with.

Although I don't understand why the actual file location works in the attachments folder but not while viewing the post..

Php.ini is usually set by your host unless you have total control like a dedicated server.
Again talk to your host.

Last edited by Ruben; 04/07/2018 2:31 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
Thanks gents. I'll look into that route and keep you updated.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
There are several server side variables that could be in play here that you can check in your PHP Configuration, not just the size allowed by uploads (PHP Value upload_max_filesize):
- The real maximum size of an attachment is the smaller of post_max_size (the size of the posted data) vs upload_max_filesize (the size of an uploaded file).
- Maximum Execution Time (the length of time that a page may "run").
- Memory Limit (the amount of memory that a PHP process can utilize).

My UBB.threads System Requirements Test script will present all of the above information in an easy to read listing (example).

I also wanted to add that, where UBB.threads does some process magic to image files (jpg, jpeg, png, gif) for thumbnails, compression, and resizing; it does not do any sort of processing for any other upload type.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2017
Posts: 10
F
stranger
stranger
F Offline
Joined: Oct 2017
Posts: 10
My problem seems to be narrowed down to not allowing access to attachments over 40MB in size. I modified my php.ini for the root site to have very large values (500MB) but that didnt appear to work. When I attempt to access the phpinfo link, I get the message: "You must have the proper permission to access this area." and then it returns me to the forums.
My web host says they don't know what else the problem could be.

I wasn't quite sure what to do w/ this script, so i stuck it in my main directory and put it in the command line. It popped out only this:

System Requirements Met
Your system meets all of UBB.threads v7.6.0+'s PHP requirements.

Additional Information
Compatable UBB.threads Versions: Minimum: v7.5.8 Maximum: v7.6.x (UBBWiki: "Server Requirements and Suggestions")
File Get Contents: Allows External URLs
GZip: GZip is supported on this system.
Maximum Execution Time: 1500 Seconds
Maximum Upload File Size: 500M (see php.net for more information)
Maximum Upload Size Allowed: 500M (the smaller of post_max_size vs upload_max_filesize)
Memory Limit: 128M
MySQL: MySQL v5.0 or newer is required; please manually check that you meet this requirement.
PHP Interface: cgi-fcgi
PHP Version: v5.6.34
Reported Host: specialtactics.com
Reported IP: 173.236.190.51
Reported OS: Linux
Reported Path: /home/guest_st/specialtactics.com
Reported Port: 80
Post Max File Size: 505M (can affect the upload size, see php.net for more information)
Time: The current, unadjusted, server time is: Saturday, April 7th, 2018 at 07:37 PM, America/Los_Angeles (-07:00)
ZLib: ZLib is supported on this system



What other suggestions may you have? I am totally lost on this to be honest.

Last edited by F27Corsair; 04/07/2018 10:45 PM.
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Honestly, I woudln't allow video uploading on my forums; a video is a huge piece of space, especially when not compressed. I'd upload to YouTube, and use the media tag feature in UBB.threads to post the videos on my forums.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Well I think you exasperated your settings to a point they don't work.
You have max memory of 128M
But you have set limits of 500M

You need to set them to some realistic size with what you have to work with.
You were able to change the
Maximum Execution Time to like 1500 seconds. That is 25 minutes.
You really think somebody is going to wait 25 minutes to upload.

Also
I see a concern that you said:
Quote
When I attempt to access the phpinfo link, I get the message: "You must have the proper permission to access this area." and then it returns me to the forums.
What does that mean if you are using phpinfo in the UBB control panel.?

Someway somehow your admin account does not have proper permissions.


Last edited by Ruben; 04/08/2018 3:18 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
I've tried uploading again, this time using a 55MB video. not a single UBB.threads software issue. I attempted to upload with both drag-and-drop (DropZone), and using the file-picker. See attached screenshots.

If you are uploading any type of file, you should probably wait until it completes and is listed in the Attachment Manager before progressing away from it.

If you are uploading a large file on your network utilizing QoS, the upload may be stalled so "more important" traffic can be transferred.

Attachments
20180408_12-59-55.PNG 20180408_12-47-20.PNG 20180408_12-48-23.PNG 20180408_12-53-41.PNG 20180408_12-55-37.PNG 20180408_12-54-40.PNG


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)