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 7161171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:31:19+00:00 2026-05-28T13:31:19+00:00

I am using paperclip to upload an image and an audio file but I

  • 0

I am using paperclip to upload an image and an audio file but I noticed that after uploading the two files, the audio file is damaged making it unusable. I tried uploading only the audio file and it works fine but if I upload the both of then at the same time the audio file uploads but does not work again. Can anybody please tell me why this might be happening? and how to solve the problem

  • 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-05-28T13:31:20+00:00Added an answer on May 28, 2026 at 1:31 pm

    This works just fine on rails 3.0.9 with parperclip 2.5.0,

    inside your model:

    has_attached_file :image
    
    has_attached_file :mp3
    
    validates_attachment_content_type :mp3, :content_type => [ 'application/mp3','application/x-mp3', 'audio/mpeg', 'audio/mp3' ],
                :message => 'Please select a .mp3 file'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using paperclip to upload files to s3 storage. Once the file is
I am using rails 3.1rc4 with paperclip and i cannot upload any image file
I'm using Paperclip and s3 to upload a simple Image file on article. I've
I'm using paperclip to upload a pdf. Once the file is uploaded I need
I'm trying to upload an MP3 file (using the paperclip plugin) and then read
Hi i want to upload mulitiple file using rails 3 and paperclip please help
I have a problem when using paperclip. I can see the files uploaded but
I am getting the following error when trying to upload an image using paperclip
I'm using paperclip to upload images to the site but when I do, it
I have an place where i upload an SVG file using paperclip, and get

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.