How to upload media file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mitul

    How to upload media file?

    Hello friends,

    I need a help for upload media file. I had tried for that but getting
    following result after uploading wmv file in $_FILE variable.

    [MediaLink1] => Array
    (
    [name] => bada_gosht.wmv
    [type] =>
    [tmp_name] =>
    [error] => 1
    [size] => 0
    )

    So Please help me how to upload different kind of media file (audio and
    video)?

    Need your help as soon as possible.

    Any suggestion always welcome.

    Mitul Patel.

  • samudas

    #2
    Re: How to upload media file?

    Here's one thought. Read the php manual. Chapter 38 will explain
    clearly what your problem is.

    Comment

    • Kim André Akerø

      #3
      Re: How to upload media file?

      Mitul wrote:
      [color=blue]
      > Hello friends,
      >
      > I need a help for upload media file. I had tried for that but getting
      > following result after uploading wmv file in $_FILE variable.
      >
      > [MediaLink1] => Array
      > (
      > [name] => bada_gosht.wmv
      > [type] =>
      > [tmp_name] =>
      > [error] => 1
      > [size] => 0
      > )
      >
      > So Please help me how to upload different kind of media file (audio
      > and video)?
      >
      > Need your help as soon as possible.
      >
      > Any suggestion always welcome.[/color]

      As you see, $_FILE[MediaLink1][error] = 1. According to the PHP manual
      on file upload errors:

      UPLOAD_ERR_INI_ SIZE
      Value: 1; The uploaded file exceeds the upload_max_file size directive
      in php.ini.



      Generally meaning, the file is too big. Either upload a smaller file or
      change the upload_max_file size in php.ini.


      --
      Kim André Akerø
      - kimandre@NOSPAM betadome.com
      (remove NOSPAM to contact me directly)

      Comment

      • Mitul

        #4
        Re: How to upload media file?


        Thank you Mr. Kim for your kind help.

        Comment

        • Iván Sánchez Ortega

          #5
          Re: How to upload media file?

          -----BEGIN PGP SIGNED MESSAGE-----
          Hash: SHA1

          Mitul wrote:
          [color=blue]
          > [MediaLink1] => Array
          > (
          > [name] => bada_gosht.wmv
          > [type] =>
          > [tmp_name] =>
          > [error] => 1[/color]

          Do you see that $_FILE['MediaLink1']['error'] = 1 ?? It means that something
          has gone wrong...

          - --
          - ----------------------------------
          Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

          Un ordenador no es un televisor ni un microondas, es una herramienta
          compleja.
          -----BEGIN PGP SIGNATURE-----
          Version: GnuPG v1.4.2 (GNU/Linux)

          iD8DBQFEBrZQ3jc Q2mg3Pc8RAmvFAJ 4xmLkC17BOHR/oS09CA3h0sHVlkQ CcDxsT
          jbIrnxGNU9KIr2o yGa3TZB4=
          =hii9
          -----END PGP SIGNATURE-----

          Comment

          Working...