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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:55:50+00:00 2026-06-12T11:55:50+00:00

I am uploading the mp3 file in my application, I have finished uploading the

  • 0

I am uploading the mp3 file in my application, I have finished uploading the file and it works fine. I want to validate the file in server side, checking if the uploaded file is in a correct format(.mp3) or not. Client side validation works fine but I want to check it in server side as well, because there are changes to the upload the file by simply changing the extension.

I am using java servlet for uploading and I am having preprocessor to do validation before uploading.

Anyone help me,
Thanks in advance.

  • 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-12T11:55:51+00:00Added an answer on June 12, 2026 at 11:55 am

    Apart from the extension, you can dive into the MP3 specification, read the file and verify if it conforms to the definition.

    Probably you can use some Java library that already interprets the spec, like this one

    But, unless you really need to, I think the extension checking is sufficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Uploading an application that works fine on my wamp server but not on the
While uploading a file bigger than post_max_size in Symfony, the uploaded file is allocated
I have uploading of pictures in an appengine application. Pictures was saved in blobstore.
Im uploading zip file (compressed with winrar) to my server by FileUpload control. On
i need to upload audio file(or any File) in server. i have asp.net server
I am uploading profile images to a directory on the server. The script works
I have troubles with Drupal 7 and file uploading. My code that doesn't work:
After uploading .xls file to the server it becomes read only. How to make
I have a php-script, which uploads mp3-files on my server. I use 'uploadify' for
I have a e-radio into my site The uploading from audio room to server

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.