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

  • Home
  • SEARCH
  • 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 504891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:32:34+00:00 2026-05-13T06:32:34+00:00

I’m using the FileReference class to upload flvs to a server. Is it possible

  • 0

I’m using the FileReference class to upload flvs to a server.
Is it possible to check the flv length not size before allowing an upload?

  • 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-13T06:32:34+00:00Added an answer on May 13, 2026 at 6:32 am

    Are you targeting Flash Player 10 alone or lower versions too? Because lower versions of Flash player (9 etc) do not allow the uploading SWF to read the contents of file (other than creationDate, creator (The Macintosh creator type of the file), modificationDate, name, size in bytes and type), so there is no way you are going to be able to do this on those players.

    If you are targeting solely FP10 users, you can load the FLV into a ByteArray in your SWF and

    1. Play it using an FLV player and read the duration property from the player. But I couldn’t find an FLV player that takes a ByteArray as input – and after reading this thread in SO, it seems like that is not possible at all.
    2. Parse the FLV file, and read the duration property from its metadata. The FLV file specification is open, but this isn’t going to be easy.

    Update to the comment:
    Excerpts from the FLV file spec:

    onMetaData
    An FLV file can contain metadata with an “onMetaData” marker. Various stream properties
    are available to a running ActionScript program via the NetStream.onMetaData property.
    The available properties differ depending on the software used.
    Common properties include:

    • duration: a DOUBLE indicating the total duration of the file in seconds
    • width: a DOUBLE indicating the width of the video in pixels
    • height: a DOUBLE indicating the height of the video in pixels
    • videodatarate: a DOUBLE indicating the video bit rate in kilobits per second
    • framerate: a DOUBLE indicating the number of frames per second
    • videocodecid: a DOUBLE indicating the video codec ID used in the file (see “Video
      tags” on page 8 for available CodecID values)
    • audiosamplerate: a DOUBLE indicating the frequency at which the audio stream is
      replayed
    • audiosamplesize: a DOUBLE indicating the resolution of a single audio sample
    • stereo: a BOOL indicating whether the data is stereo
    • audiocodecid: a DOUBLE indicating the audio codec ID used in the file (see “Audio
      tags” on page 6 for available SoundFormat values)
    • filesize: a DOUBLE indicating the total size of the file in bytes

    FLV file can contain metadata – it doesn’t say it will contain metadata. It also says that available properties can vary based on the software used to create FLV. So I guess there is no guarantee (as per specs) that the duration property will be present. That said, duration is one of the basic properties of FLV and it would be safe to assume that any reasonable software would include it.

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

Sidebar

Ask A Question

Stats

  • Questions 265k
  • Answers 265k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer All you need is the correct IP address that VMWare… May 13, 2026 at 12:29 pm
  • Editorial Team
    Editorial Team added an answer "((?:[a-zA-Z0-9]{4}|/{4})[a-zA-Z0-9]{7})" Then just examine the contents of capture group 1… May 13, 2026 at 12:29 pm
  • Editorial Team
    Editorial Team added an answer The operator m// is a pattern match, basically a synonym… May 13, 2026 at 12:29 pm

Related Questions

I want use html5's new tag to play a wav file (currently only supported
In order to apply a triggered animation to all ToolTip s in my app,
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I've got a string that has curly quotes in it. I'd like to replace

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.