473,813 Members | 4,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't seem to upload .flv file thru php

Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for file,
validate, upload if no errors. Well, something is not working when I try
to upload a flv file. For starters, I print out the $_post and $_files
arrays and I see that if I browsed for, say, a wmv video then those
arrays contain all the needed data. If I browse for a flv, however, both
arrays stay empty, like it looses, for some unknown reason, all the data
entered in the form. Any idea why? Could it be a mimi/type-related issue?
I gathered that flvs' mime/type was not yet really defined. I don't
know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs

Thanks
Feb 5 '08 #1
4 2964
On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname .com>
wrote:
Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for file,
validate, upload if no errors. Well, something is not working when I try
to upload a flv file. For starters, I print out the $_post and $_files
arrays and I see that if I browsed for, say, a wmv video then those
arrays contain all the needed data. If I browse for a flv, however, both
arrays stay empty, like it looses, for some unknown reason, all the data
entered in the form. Any idea why? Could it be a mimi/type-related issue?
I gathered that flvs' mime/type was not yet really defined. I don't
know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs
Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?
--
Rik Wasmus
Feb 5 '08 #2
On Tue, 05 Feb 2008 17:59:41 +0100, Rik Wasmus wrote:
On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname .com>
wrote:
>Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for
file, validate, upload if no errors. Well, something is not working
when I try to upload a flv file. For starters, I print out the $_post
and $_files arrays and I see that if I browsed for, say, a wmv video
then those arrays contain all the needed data. If I browse for a flv,
however, both arrays stay empty, like it looses, for some unknown
reason, all the data entered in the form. Any idea why? Could it be a
mimi/type-related issue? I gathered that flvs' mime/type was not yet
really defined. I don't know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs

Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?
max_post_size is 8 megs

For now I'm not validating anything since I stumbled upon this issue, I
just output $_POST and $_FILE to see if, at least, the data is there.
Then I hit BACK, reload the form and reenter some data. It just boggles
my mind.
Feb 5 '08 #3
henribaeyens wrote:
On Tue, 05 Feb 2008 17:59:41 +0100, Rik Wasmus wrote:
>On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname .com>
wrote:
>>Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for
file, validate, upload if no errors. Well, something is not working
when I try to upload a flv file. For starters, I print out the $_post
and $_files arrays and I see that if I browsed for, say, a wmv video
then those arrays contain all the needed data. If I browse for a flv,
however, both arrays stay empty, like it looses, for some unknown
reason, all the data entered in the form. Any idea why? Could it be a
mimi/type-related issue? I gathered that flvs' mime/type was not yet
really defined. I don't know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs
Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?

max_post_size is 8 megs

For now I'm not validating anything since I stumbled upon this issue, I
just output $_POST and $_FILE to see if, at least, the data is there.
Then I hit BACK, reload the form and reenter some data. It just boggles
my mind.
Your code would help.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Feb 6 '08 #4
On Wed, 06 Feb 2008 14:33:34 -0500, Jerry Stuckle wrote:
henribaeyens wrote:
>On Tue, 05 Feb 2008 17:59:41 +0100, Rik Wasmus wrote:
>>On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname .com>
wrote:

Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for
file, validate, upload if no errors. Well, something is not working
when I try to upload a flv file. For starters, I print out the $_post
and $_files arrays and I see that if I browsed for, say, a wmv video
then those arrays contain all the needed data. If I browse for a flv,
however, both arrays stay empty, like it looses, for some unknown
reason, all the data entered in the form. Any idea why? Could it be a
mimi/type-related issue? I gathered that flvs' mime/type was not yet
really defined. I don't know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs
Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?

max_post_siz e is 8 megs

For now I'm not validating anything since I stumbled upon this issue, I
just output $_POST and $_FILE to see if, at least, the data is there.
Then I hit BACK, reload the form and reenter some data. It just boggles
my mind.

Your code would help.
That's not the code, it's the value of post_max_size. It wasn't a flv
issue as I first suspected but a $_POST ($_FILES) size issue, the post
max size has to large. I had no problems with files that were less than
post_max_size, when the file was larger (than the default 8 megs) then
there was trouble. I scanned the apache logs and say this "POST Content-
Length" warning. BINGO!
Feb 6 '08 #5

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

Similar topics

3
2842
by: fdsl ysnh | last post by:
--- python-list-request@python.orgдµÀ: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, > visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subject or body > 'help' to
15
3107
by: Sue Barth | last post by:
Hi all, I hope I'm in the right ng for this... I made an .asp page that allows users to toggle thru a directory of photos. The page accomplishes the following: selects a directory of photos based on a drop down uses the fso to obtain the # of photos in the directory cycles thru the photos w forward and backward buttons that send the pic # with a +1 or -1 value retrieve's & displays the rs's photo description field from a db based
6
741
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: "A reference to 'Active DS Type Library' could not be added. The type library wrapper tool 'tlbimp' cannot be found on this system. Please re-install Visual Studio." This occurs regardless of the actual tlb or dll selected and happens on...
3
13389
by: Karen Grube | last post by:
Hi! Each week, we receive a two-page PDF file from UPS along with a separate flat file (a CSV) The PDF file contains the overview of our weekly invoice and the CSV contains the details of each shipment. I download the file from UPS and then use DTS to import the data into SQL. At that point, I have a Crystal report that prints what looks like a regular UPS invoice. The only problem is that I wind up with having to print two...
6
1561
by: Paul M | last post by:
hi there, i have an xml file, but am not too sure how to read all these elements using vb.net code. any help would be greatly appreciated:)) <---------CODE---------------> <?xml version="1.0" encoding="utf-8"?> <weatherFeed>
0
843
by: Bill nguyen | last post by:
I have a VB routine that will need to access a client website via user login ID & password then upload a text file to the site by going thru certain menu options. It would be great if I can do it using the IE object in .NET so that the whole routine can be transparent to the user. Any tip is greatly appreciated. Thanks Bill
6
12595
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web folder. I that possible? Thanks.
1
2726
by: pbd22 | last post by:
hi. i have been posting this here and elsewhere a lot and can't seem to get resolution on this problem. i have been trying to upload files using a hidden iframe to a asp.net/vb.net form. the problem is that the server code can't read the httpfilecollection. the count is always zero. my upload form's form tag looks like this:
5
1903
by: Arthur Jacobs | last post by:
Good day, I am trying to upload a file to the server. http://chops.novatrope.com/game/test/form2.html Here is some more debugging info:Array ( =Array ( =Pequot.gif =>
0
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10665
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10420
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10139
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3029
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.