HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] - Errors trying to upload video clips

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#63432 (In Topic #13735)
Avatar

Fan in action

I keep getting errors trying to upload video clips

I am trying to embed a video clip into a news article using the attachment.
It doesn't matter which video clip I try to upload, just when it gets to the end, or near the end it throws up a dialog saying "An error has occurred. Try again later." It doesn't say what the error is that it has encountered.

At first I though it may have had something to do with max size so I increased the max size to be larger than the videos but I still have the same problem every time I try to upload the attachment.

What I am trying to do is have a news article with a video clip that the visitor can view from within the article. Is there any way to FTP all of my video clips to a folder on the site and then somehow point to it so that it displays in the article? If not, can anyone suggest another way of accomplishing what I am trying to do or,… if there is no other way, can you suggest what the problem is that keeps flagging the error and how to resolve it?

Also, can someone tell me what "Type" should be used for video clips? I left it at the default "Display as an 'Island' (if possible).

Thanks
Back to the top
 
Posted
Rating:
#63445
Avatar

Well-settled

One sec,
I am no pro but I'll try to do as you are doing and see what I come up with, give my a couple of minutes.
Back to the top
 
Posted
Rating:
#63447
Avatar

Well-settled

Ok I got it to work.

I tried how you were trying to upload a video file, but I am guessing that the video extension is not white listed and even if it were I am not sure that OCP will play it for ya, you'll need a video player for the "playing" part I recommend Video LightBox - Embed video to your website with beautiful Lightbox effect!
Video LightBox, this alone will save your bandwidth if you had your videos to say Youtube, if not input your vidoe URL in the index page the program makes for you. You have to upload the two folders and th Video Lightbox makes for ya and change the URL script location too. Just make a new comcode page and add the code that you edited for the index page the program make for you. Make sure you add that code between this..

Code

[box type="curved"]!!!!YOUR INDEX PAGE CODE HERE!!! [/box]
ADD YOUR NEWS ANYWHERE

This is the only way I gotten this to work for me and it did not take me long…

If you don't like this try googling for "html video embed code" and use anyone you like.

I was gonna to make a screen video but I am going to sleep

Good luck

View my test here

Testphp - Proteamclan
Back to the top
 
Posted
Rating:
#63450
Avatar

ocPortal has a built in flv player.

The type should be island.

The problem is probably due to the PHP file size limits being too low. This is explained in the our FAQ.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63452
Avatar

Well-settled

The PHP size is not the issue for me, mine was the video extension, I searched on how to change that but I found nothing.

He is talking about what's inside the PHP.ini file

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 150M


AND

; Maximum size of POST data that PHP will accept.
post_max_size = 150M
Back to the top
 
Posted
Rating:
#63458
Avatar

What was your video extension?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63471
Avatar

Fan in action

My extensions is .flv and it uploads until it gets to the end of the file and then flags the error.
Back to the top
 
Posted
Rating:
#63486
Avatar

Fan in action

Thank you very much Violative for taking the time to try to resolve the issue. I would prefer to be able to accomplish it within ocPortal if possible. If I can't find a solution, then I will look at the Lightbox work-around.

I uploaded all of the video clips to a folder in the root and used the html comcode tag to try to embed the video. What I used was this:

Code

[center][url="http://www.carof.ca/hamvideos/EmergencyHamRadio.flv"]Hurricane Katrina [/url][/center]

What it does is place a link in the article and if you click on the link it asks if you want to select a player or if you want to download the file. What I an trying to get id the video player displayed in the article so that all you have to do is click on "Play" to view it.
Back to the top
 
Posted
Rating:
#63490
Avatar

Well-settled

My question where and how can I add and change accepted or deny extension types ? This is a very simple question If I give it some time I may find it, just last night I was in a hurry so I throw up something simple for columbo. I was hoping someone would have a better way of adding videos, but for me I like how I did it one the new page I''ll add all of our videos to You Tube and for that I can add them to that new page, Now I am looking into adding the code into the forums were users can add only videos from You Tube and some how also automatically post to the new commode page.

Sorry columbo seems I hi-jacked your thread.
Back to the top
 
Posted
Rating:
#63491
Avatar

Yes, this topic is getting rather messy. There's no reason to assume columbo isn't just suffering from uploading files too large for the server; and our FAQ talks about how to change the file size limits.

Violative, you may have an entirely different issue. It's not a matter of just white-listing file types, because if ocPortal recognised the video format it probably would already be white-listed. In fact, if you were able to select the file, it probably is white-listed unless there's some bug (the uploader can't select something it can't upload). Unfortunately it's really hard to debug the flash uploader. Possibly something could be in the ocPortal error log or the Apache error log.

There is a bug with the attachment maximum upload limit not being checked correctly on the client-side, which should be fixed in the next patch release.

Using a 'url' Comcode tag won't show a video, that is strictly just for links. But if you do want to do it like that, the 'flash' Comcode tag should actually work instead. It's documented in the Comcode tutorial.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63502
Avatar

Fan in action

Thanks Chris. You are, once again, correct!

I checked the php.ini file in my cPanel and made a change to the upload_max_filesize and post_max_size and it now seems to upload properly. I never thought of the php.ini file until you mentioned it.

Now the only problem I have with this is that I changed the default video width and the default video height but it doesn't seem to make any difference in the display size.
Back to the top
 
Posted
Rating:
#63503
Avatar

Try adding width and height parameters to the attachment tag.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63505
Avatar

Fan in action

Thanks Chris.

I added the width and height to the attachment code and that did the trick.

Thanks again for all the help.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: