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.
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/20182:44 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
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.)
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/20186:15 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
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.
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/201811:04 AM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
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/20182:06 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
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.
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.
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.
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
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).
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.
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.
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.
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/20183:18 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
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.