473,379 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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.

Mar 2 '06 #1
4 3444
Here's one thought. Read the php manual. Chapter 38 will explain
clearly what your problem is.

Mar 2 '06 #2
Mitul wrote:
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.


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_filesize directive
in php.ini.

http://php.net/features.file-upload.errors

Generally meaning, the file is too big. Either upload a smaller file or
change the upload_max_filesize in php.ini.
http://php.net/ini.core#ini.upload-max-filesize

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Mar 2 '06 #3

Thank you Mr. Kim for your kind help.

Mar 2 '06 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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


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)

iD8DBQFEBrZQ3jcQ2mg3Pc8RAmvFAJ4xmLkC17BOHR/oS09CA3h0sHVlkQCcDxsT
jbIrnxGNU9KIr2oyGa3TZB4=
=hii9
-----END PGP SIGNATURE-----
Mar 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
I am using Excel to save a spreadsheet in .csv format. This creates a text file with extension .csv But when I try to upload the file to the server by checking for its MIME type using $_FILE I get...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
2
by: Christian Giordano | last post by:
Hi guys, I've an hosting in media temple (appliance-server) with plesk 7.5.1. I'm trying to bring make a CMS I did in another server to work there. The issues is related the file uploading, in fact...
1
by: NinJA999 | last post by:
I have the following code to handle file uploads. There is a database called "media". The errors I keep getting will follow the code. The upload data gets into the database fine; it seems to be...
1
by: NinJA999 | last post by:
I have the following code to handle file uploads. There is a database called "media". The error I keep getting will follow the code. The upload data gets into the database fine; it seems to be...
2
by: Reggie | last post by:
Hi am trying to create a script for users to upload small size video clips of themselves and for it to be able to play on the media player ive created on there user a/c. So users to upload there...
5
by: camphor | last post by:
hi, I have found an upload script in hotscripts and have implemented it into the website, I followed the installation steps to 'give write permissions to php on the upload folder (which is...
0
by: cw808 | last post by:
Hi all. I'm new here but hoping I can get some help for my problem. My situation is that I need to upload files through a C# .NET web application to a file server. I done a search and followed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.