Forums

PHP

This topic is locked

Document contains no data

Posted 11 Apr 2005 23:45:52
1
has voted
11 Apr 2005 23:45:52 Vaughn Loose posted:
I find I am unable to upload certain files. I get an error "The document contains no data." However when I view the file or file size data does exist.

Replies

Replied 12 Apr 2005 00:38:32
12 Apr 2005 00:38:32 Chris Charlton replied:
Are you using hand-coded PHP or an extension? Please post the PHP upload code if it's hand-coded.

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 12 Apr 2005 15:50:22
12 Apr 2005 15:50:22 Vaughn Loose replied:
Here is an example of an insert record form. I believe everything in this code was developed in Dreamweaver MX 2004. I don't think I hand coded anything here yet I have the same problem on this page.

&lt;?php require_once('../Connections/eas.php'); ?&gt;
&lt;?php
session_start();
$MM_authorizedUsers = "admin";
$MM_donotCheckaccess = "false";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;

// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "" && false) {
$isValid = true;
}
}
return $isValid;
}

$MM_restrictGoTo = "presentations/login.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?") $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) &gt; 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?&gt;
&lt;?php require_once('../ScriptLibrary/incPureUpload.php'); ?&gt;
&lt;?php
// Pure PHP Upload 2.1.3
if (isset($HTTP_GET_VARS['GP_upload'])) {
$ppu = new pureFileUpload();
$ppu-&gt;path = "/var/www/html/presentations/files/";
$ppu-&gt;extensions = "";
$ppu-&gt;formName = "presentation";
$ppu-&gt;storeType = "file";
$ppu-&gt;sizeLimit = "";
$ppu-&gt;nameConflict = "over";
$ppu-&gt;requireUpload = "false";
$ppu-&gt;minWidth = "";
$ppu-&gt;minHeight = "";
$ppu-&gt;maxWidth = "";
$ppu-&gt;maxHeight = "";
$ppu-&gt;saveWidth = "";
$ppu-&gt;saveHeight = "";
$ppu-&gt;timeout = "600";
$ppu-&gt;progressBar = "";
$ppu-&gt;progressWidth = "300";
$ppu-&gt;progressHeight = "100";
$ppu-&gt;checkVersion("2.1.3";
$ppu-&gt;doUpload();
}
$GP_uploadAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $HTTP_SERVER_VARS['QUERY_STRING'])) {
$GP_uploadAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING']."&GP_upload=true";
} else {
$GP_uploadAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING'];
}
} else {
$GP_uploadAction .= "?"."GP_upload=true";
}

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;

switch ($theType) {
case "text":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "" ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "" ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if (isset($editFormAction)) {
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $HTTP_SERVER_VARS['QUERY_STRING'])) {
$editFormAction .= "&GP_upload=true";
}
} else {
$editFormAction .= "?GP_upload=true";
}
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "presentation") {
$insertSQL = sprintf("INSERT INTO presentation (Title, text, doc_1_title, document1, doc_2_title, document2, doc_3_title, document3) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['title'], "text",
GetSQLValueString($_POST['text'], "text",
GetSQLValueString($_POST['doc_1_title'], "text",
GetSQLValueString($_POST['document1'], "text",
GetSQLValueString($_POST['doc_2_title'], "text",
GetSQLValueString($_POST['document2'], "text",
GetSQLValueString($_POST['doc_3_title'], "text",
GetSQLValueString($_POST['document3'], "text");

mysql_select_db($database_eas, $eas);
$Result1 = mysql_query($insertSQL, $eas) or die(mysql_error());

$insertGoTo = "index.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}

mysql_select_db($database_eas, $eas);
$query_presentation = "SELECT * FROM presentation";
$presentation = mysql_query($query_presentation, $eas) or die(mysql_error());
$row_presentation = mysql_fetch_assoc($presentation);
$totalRows_presentation = mysql_num_rows($presentation);
?&gt;
&lt;html&gt;&lt;!-- InstanceBegin template="/Templates/eastemplate.dwt.php" codeOutsideHTMLIsLocked="false" --&gt;
&lt;head&gt;
&lt;!-- InstanceBeginEditable name="doctitle" --&gt;
&lt;title&gt;Explore-a-Story&lt;/title&gt;
&lt;!-- InstanceEndEditable --&gt;&lt;meta http-equiv="Content-Type" content="text/html;"&gt;
&lt;!-- Fireworks MX Dreamweaver MX target. Created Thu May 20 15:43:29 GMT-0400 (Eastern Daylight Time) 2004--&gt;
&lt;script language="JavaScript"&gt;
&lt;!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")&gt;0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i&lt;d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i&lt;d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length &gt; 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i &lt; args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over" {
document.MM_nbOver = nbArr = new Array();
for (i=1; i &lt; args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i &lt; document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down" {
nbArr = document[grpName];
if (nbArr) for (i=0; i &lt; nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i &lt; args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i&lt;a.length; i++)
if (a[i].indexOf("#"!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//--&gt;
&lt;/script&gt;
&lt;!-- InstanceBeginEditable name="head" --&gt;
&lt;style type="text/css"&gt;
&lt;!--
.style1 {
font-size: 24px;
font-weight: bold;
}
--&gt;
&lt;/style&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;/head&gt;
&lt;body bgcolor="#e0eaeb" onLoad="MM_preloadImages('/images/template_r2_c2_f2.jpg','/images/template_r2_c2_f3.jpg','/images/template_r3_c7_f2.jpg','/images/template_r3_c7_f3.jpg','/images/template_r4_c9_f2.jpg','/images/template_r4_c9_f3.jpg','/images/template_r8_c1_f2.jpg','/images/template_r8_c1_f3.jpg','/images/template_r8_c3_f2.jpg','/images/template_r8_c3_f3.jpg','/images/template_r8_c10_f2.jpg','/images/template_r8_c10_f3.jpg','/images/template_r8_c13_f2.jpg','/images/template_r8_c13_f3.jpg','/images/template_r8_c15_f2.jpg','/images/template_r8_c15_f3.jpg','/images/template_r9_c1_f2.jpg','/images/template_r9_c1_f3.jpg','/images/template_r9_c5_f2.jpg','/images/template_r9_c5_f3.jpg','/images/template_r9_c12_f2.jpg','/images/template_r9_c12_f3.jpg','/images/template_r9_c15_f2.jpg','/images/template_r9_c15_f3.jpg')"&gt;
&lt;table align="CENTER" border="0" cellpadding="0" cellspacing="0" width="743"&gt;
&lt;!-- fwtable fwsrc="template.png" fwbase="template.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="29" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="73" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="47" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="16" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="13" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="35" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="18" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="15" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="40" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="86" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="18" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="201" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="150" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td colspan="15"&gt;&lt;img name="template_r1_c1" src="/images/template_r1_c1.jpg" width="743" height="129" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="129" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="6"&gt;&lt;img name="template_r2_c1" src="/images/template_r2_c1.jpg" width="29" height="22" border="0" alt=""&gt;&lt;/td&gt;
&lt;td rowspan="5" colspan="4"&gt;&lt;a href="www.westsylvania.com/cfm/visitor_folder.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r2_c2','/images/template_r2_c2_f2.jpg','/images/template_r2_c2_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r2_c2','/images/template_r2_c2_f3.jpg',1)"&gt;&lt;img name="template_r2_c2" src="/images/template_r2_c2.jpg" width="137" height="16" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="10"&gt;&lt;img name="template_r2_c6" src="/images/template_r2_c6.jpg" width="577" height="3" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="3" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="5"&gt;&lt;img name="template_r3_c6" src="/images/template_r3_c6.jpg" width="13" height="19" border="0" alt=""&gt;&lt;/td&gt;
&lt;td rowspan="2"&gt;&lt;a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r3_c7','/images/template_r3_c7_f2.jpg','/images/template_r3_c7_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r3_c7','/images/template_r3_c7_f3.jpg',1)"&gt;&lt;img name="template_r3_c7" src="/images/template_r3_c7.jpg" width="35" height="11" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="8"&gt;&lt;img name="template_r3_c8" src="/images/template_r3_c8.jpg" width="529" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="4"&gt;&lt;img name="template_r4_c8" src="/images/template_r4_c8.jpg" width="18" height="18" border="0" alt=""&gt;&lt;/td&gt;
&lt;td rowspan="2" colspan="2"&gt;&lt;a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r4_c9','/images/template_r4_c9_f2.jpg','/images/template_r4_c9_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r4_c9','/images/template_r4_c9_f3.jpg',1)"&gt;&lt;img name="template_r4_c9" src="/images/template_r4_c9.jpg" width="55" height="11" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td rowspan="4" colspan="5"&gt;&lt;img name="template_r4_c11" src="/images/template_r4_c11.jpg" width="456" height="18" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="10" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="3"&gt;&lt;img name="template_r5_c7" src="/images/template_r5_c7.jpg" width="35" height="8" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="2" colspan="2"&gt;&lt;img name="template_r6_c9" src="/images/template_r6_c9.jpg" width="55" height="7" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="1" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="4"&gt;&lt;img name="template_r7_c2" src="/images/template_r7_c2.jpg" width="137" height="6" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="6" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&lt;a href="www.westsylvania.com/cfm/stories" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r8_c1','/images/template_r8_c1_f2.jpg','/images/template_r8_c1_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r8_c1','/images/template_r8_c1_f3.jpg',1)"&gt;&lt;img name="template_r8_c1" src="/images/template_r8_c1.jpg" width="102" height="25" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="7"&gt;&lt;a href="www.westsylvania.com/cfm/attractions.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r8_c3','/images/template_r8_c3_f2.jpg','/images/template_r8_c3_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r8_c3','/images/template_r8_c3_f3.jpg',1)"&gt;&lt;img name="template_r8_c3" src="/images/template_r8_c3.jpg" width="145" height="25" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="3"&gt;&lt;a href="www.westsylvania.com/cfm/content.cfm?content_id=107" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r8_c10','/images/template_r8_c10_f2.jpg','/images/template_r8_c10_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r8_c10','/images/template_r8_c10_f3.jpg',1)"&gt;&lt;img name="template_r8_c10" src="/images/template_r8_c10.jpg" width="144" height="25" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="www.westsylvania.com/cfm/rec_business.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r8_c13','/images/template_r8_c13_f2.jpg','/images/template_r8_c13_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r8_c13','/images/template_r8_c13_f3.jpg',1)"&gt;&lt;img name="template_r8_c13" src="/images/template_r8_c13.jpg" width="201" height="25" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img name="template_r8_c14" src="/images/template_r8_c14.jpg" width="1" height="25" border="0" alt=""&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="www.westsylvania.com/cfm/dp_corner_overview.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r8_c15','/images/template_r8_c15_f2.jpg','/images/template_r8_c15_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r8_c15','/images/template_r8_c15_f3.jpg',1)"&gt;&lt;img name="template_r8_c15" src="/images/template_r8_c15.jpg" width="150" height="25" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="25" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="3"&gt;&lt;a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r9_c1','/images/template_r9_c1_f2.jpg','/images/template_r9_c1_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r9_c1','/images/template_r9_c1_f3.jpg',1)"&gt;&lt;img name="template_r9_c1" src="/images/template_r9_c1.jpg" width="149" height="26" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td rowspan="2"&gt;&lt;img name="template_r9_c4" src="/images/template_r9_c4.jpg" width="1" height="31" border="0" alt=""&gt;&lt;/td&gt;
&lt;td colspan="7"&gt;&lt;a href="www.westsylvania.com/cfm/dp_corner_conservation.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r9_c5','/images/template_r9_c5_f2.jpg','/images/template_r9_c5_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r9_c5','/images/template_r9_c5_f3.jpg',1)"&gt;&lt;img name="template_r9_c5" src="/images/template_r9_c5.jpg" width="223" height="26" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="3"&gt;&lt;a href="www.westsylvania.com/cfm/dp_projects_overview.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r9_c12','/images/template_r9_c12_f2.jpg','/images/template_r9_c12_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r9_c12','/images/template_r9_c12_f3.jpg',1)"&gt;&lt;img name="template_r9_c12" src="/images/template_r9_c12.jpg" width="220" height="26" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="www.westsylvania.com/cfm/dp_about_overview.cfm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','template_r9_c15','/images/template_r9_c15_f2.jpg','/images/template_r9_c15_f3.jpg',1)" onClick="MM_nbGroup('down','navbar1','template_r9_c15','/images/template_r9_c15_f3.jpg',1)"&gt;&lt;img name="template_r9_c15" src="/images/template_r9_c15.jpg" width="150" height="26" border="0" alt=""&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="/images/spacer.gif" width="1" height="26" border="0" alt=""&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div align="center"&gt;
&lt;table align="CENTER" width="743"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;!-- InstanceBeginEditable name="body" --&gt;
&lt;script language='javascript' src='../ScriptLibrary/incPureUpload.js'&gt;&lt;/script&gt;
&lt;p class="style1"&gt;New Presentation &lt;/p&gt;
&lt;form action="&lt;?php echo $editFormAction; ?&gt;" method="post" enctype="multipart/form-data" name="presentation" id="presentation" onSubmit="checkFileUpload(this,'',false,'','','','','','','');return document.MM_returnValue"&gt;
&lt;p&gt;Presentation Title:
&lt;input name="title" type="text" id="title" size="100"&gt;&lt;/p&gt;
&lt;p&gt;Text:&lt;br&gt;
&lt;textarea name="text" cols="80" rows="6" id="text"&gt;&lt;/textarea&gt;
&lt;/p&gt;
&lt;p&gt;Document 1 Title:
&lt;input name="doc_1_title" type="text" id="doc_1_title" size="80"&gt;
&lt;/p&gt;
&lt;p&gt;Document 1:
&lt;input name="document1" type="file" id="document1" onChange="checkOneFileUpload(this,'',false,'','','','','','','')"&gt;
&lt;/p&gt;
&lt;p&gt;Document 2 Title:
&lt;input name="doc_2_title" type="text" id="doc_2_title" size="80"&gt;
&lt;/p&gt;
&lt;p&gt;Document 2:
&lt;input name="document2" type="file" id="document2" onChange="checkOneFileUpload(this,'',false,'','','','','','','')"&gt;
&lt;/p&gt;
&lt;p&gt;Document 3 Title:
&lt;input name="doc_3_title" type="text" id="doc_3_title" size="80"&gt;
&lt;/p&gt;
&lt;p&gt;Document 3:
&lt;input name="document3" type="file" id="document3" onChange="checkOneFileUpload(this,'',false,'','','','','','','')"&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;input type="submit" name="Submit" value="Submit"&gt;
&lt;/p&gt;

&lt;input type="hidden" name="MM_insert" value="presentation"&gt;
&lt;/form&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;!-- InstanceEndEditable --&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/body&gt;&lt;!-- InstanceEnd --&gt;
&lt;/html&gt;
&lt;?php
mysql_free_result($presentation);
?&gt;
Replied 12 Apr 2005 21:03:39
12 Apr 2005 21:03:39 Vaughn Loose replied:
I just realized the "Document contains no data" only happens when using Mozilla. IE just gives me Page can not display. It seems to be happening with documents over 500K. I'll keep digging.

Thanks in advence for any help!
Replied 12 Apr 2005 23:44:53
12 Apr 2005 23:44:53 Vaughn Loose replied:
I found the problem. In case anyone else has the same problem here ya go:

using php 4.2.2 in Redhat9

edit /etc/httpd/conf.d/php.conf
Change the "LimitRequestBody" to accomidate the size files you want to upload.

Reply to this topic