Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8696011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:10:41+00:00 2026-06-13T01:10:41+00:00

Hi im trying to upload a video to s3 and display it using flowplayer

  • 0

Hi im trying to upload a video to s3 and display it using flowplayer

my flowplayer crashes because the numbers are added at the back of the url of video src

<div class="flowplayer" style="width: 624px; height: 260px; ">
   <video src="http://s3-ap-southeast-1.amazonaws.com/psyched-sg-store/624x260.mp4?1350552718"></video>
</div>

this breaks my flowplayer , but clicking on the link after view source brings me to the video

<div class="flowplayer" style="width: 624px; height: 260px; ">
   <video src="http://s3-ap-southeast-1.amazonaws.com/psyched-sg-store/624x260.mp4"></video>
</div>

this works

i set up my paperclip like this

# /config/initializer/s3.rb
# if you're using sg buckets
Paperclip.interpolates(:s3_sg_url) { |attachment, style|
   "#{attachment.s3_protocol}//s3-ap-southeast-1.amazonaws.com/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/},
   "")}"
   }

in my model..

  has_attached_file :attached_video,:storage => :s3,
       :s3_credentials => "#{Rails.root}/config/s3.yml",
       :path => "/:filename",
       :url  => ":s3_sg_url"

       def attached_video_url
           if attached_video.file?
            attached_video.url
          else
            nil
        end    
      end

i also set up my s3.yml

development:
  bucket: psyched-sg-store
  access_key_id: xx
  secret_access_key: xx
test:
  bucket: psyched-sg-store
  access_key_id: xx
  secret_access_key: x
production:
  bucket: psyched-sg-store
  access_key_id: xx
  secret_access_key: xx

whats wrong? why are the numbers appearing behind the url?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:10:42+00:00Added an answer on June 13, 2026 at 1:10 am

    Those numbers are anti-caching timestamps. If you want to get rid of them, add :use_timestamp => false to your model’s attachment setup, as in:

    has_attached_file :attached_video,:storage => :s3,
           :s3_credentials => "#{Rails.root}/config/s3.yml",
           :path => "/:filename",
           :url  => ":s3_sg_url",
           :use_timestamp => false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to upload a youtube video using the GData gem (I have
I am trying to upload video from the iPhone application using FBConnect. Actually I
i am trying to upload a video and convert it in php using zend
I am trying to upload video to Wordpress.using following method string expression = videoData.VideoTitle;
I am trying to upload a video to the server using the post method,
I am trying to upload a video to Youtube using GData and I have
I'm trying to upload a video to YouTube using the PHP Data API $yt
I'm trying to make a video upload to youtube using the gdata api .
I am trying to upload video created using MS Expression Encoder 4 to YouTube,
We are getting error when trying to upload a large size video file to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.