Pure PHP Upload 2 Support Product Page
This topic was archived
Error: File not uploaded correctly or is empty
Reported 23 Oct 2004 00:42:46
1
has this problem
23 Oct 2004 00:42:46 Eduardo Gomez posted:
Hi,When I try to upload files (any files -- I get the error regardless of the extension), I get the following error:
An error has occured saving uploaded file!
Filename: xyz.doc
File is not uploaded correctly or is empty.
Please correct and try again
I've checked previous questions in these forums, and I've ensured the following:
* I've upgraded to version 2.1.3.1 (the latest version).
* Size of uploaded files is small, no more than 100KB.
* The upload directory is CHMOD 777.
... to no avail.
Any ideas why I can't upload files?
Thanks.
Replies
Replied 01 Nov 2004 12:05:40
01 Nov 2004 12:05:40 Patrick Woldberg replied:
There wend something wrong in receiving the file, I don't know what the reason is. I always suggest to check the permissions, but seems you already checked that.
Place <?php $DMX_debug = true; ?> at top of your document, that should give some more information and should help to find the problem.
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Place <?php $DMX_debug = true; ?> at top of your document, that should give some more information and should help to find the problem.
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 20 Nov 2004 04:34:37
20 Nov 2004 04:34:37 Eduardo Gomez replied:
Hi Patrick,
I added the DEBUG instruction, and here's what I get:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Pure PHP Upload version 213
PHP version(4.2.3)
path(../../images/products)
extensions(GIF,JPG,JPEG,PNG)
redirectURL()
storeType(file)
sizeLimit()
nameConflict(uniq)
minWidth()
minHeight()
maxWidth()
maxHeight()
saveWidth()
saveHeight()
timeout(600)
Setting timeout
fullPath = /unifem_new/cms/products/../../images/products/
Check path
Starting to progress files
field = ImageFilenameEng
filename = Women_HIV_AIDS_cover.jpg
CleanUp FileName
new filename = Women_HIV_AIDS_cover.jpg
Checking extension
comparing JPG with GIF
comparing JPG with JPG
comparing JPG with JPEG
comparing JPG with PNG
An error has occured saving uploaded file!
Filename: Women_HIV_AIDS_cover.jpg
File is not uploaded correctly or is empty.
Please correct and try again
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Following are the settings created in my PHP file by the Pure PHP Upload and Smart Image Processor extensions:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
// Pure PHP Upload 2.1.3
if (isset($HTTP_GET_VARS['GP_upload'])) {
$ppu = new pureFileUpload();
$ppu->path = "../../images/products";
$ppu->extensions = "GIF,JPG,JPEG,PNG";
$ppu->formName = "form1";
$ppu->storeType = "file";
$ppu->sizeLimit = "";
$ppu->nameConflict = "uniq";
$ppu->requireUpload = "false";
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "";
$ppu->progressWidth = "300";
$ppu->progressHeight = "100";
$ppu->checkVersion("2.1.3"
;
$ppu->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";
}
// Smart Image Processor 1.0.4
if (isset($HTTP_GET_VARS['GP_upload'])) {
$sip = new resizeUploadedFiles($ppu);
$sip->component = "GD2";
$sip->resizeImages = "true";
$sip->aspectImages = "true";
$sip->maxWidth = "600";
$sip->maxHeight = "600";
$sip->quality = "90";
$sip->makeThumb = "true";
$sip->pathThumb = "../../images/products";
$sip->aspectThumb = "true";
$sip->naming = "prefix";
$sip->suffix = "thumb_";
$sip->maxWidthThumb = "240";
$sip->maxHeightThumb = "240";
$sip->qualityThumb = "90";
$sip->checkVersion("1.0.4"
;
$sip->doResize();
}
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Any help would be much appreciated. Thank you.
-Eduardo
I added the DEBUG instruction, and here's what I get:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Pure PHP Upload version 213
PHP version(4.2.3)
path(../../images/products)
extensions(GIF,JPG,JPEG,PNG)
redirectURL()
storeType(file)
sizeLimit()
nameConflict(uniq)
minWidth()
minHeight()
maxWidth()
maxHeight()
saveWidth()
saveHeight()
timeout(600)
Setting timeout
fullPath = /unifem_new/cms/products/../../images/products/
Check path
Starting to progress files
field = ImageFilenameEng
filename = Women_HIV_AIDS_cover.jpg
CleanUp FileName
new filename = Women_HIV_AIDS_cover.jpg
Checking extension
comparing JPG with GIF
comparing JPG with JPG
comparing JPG with JPEG
comparing JPG with PNG
An error has occured saving uploaded file!
Filename: Women_HIV_AIDS_cover.jpg
File is not uploaded correctly or is empty.
Please correct and try again
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Following are the settings created in my PHP file by the Pure PHP Upload and Smart Image Processor extensions:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
// Pure PHP Upload 2.1.3
if (isset($HTTP_GET_VARS['GP_upload'])) {
$ppu = new pureFileUpload();
$ppu->path = "../../images/products";
$ppu->extensions = "GIF,JPG,JPEG,PNG";
$ppu->formName = "form1";
$ppu->storeType = "file";
$ppu->sizeLimit = "";
$ppu->nameConflict = "uniq";
$ppu->requireUpload = "false";
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "";
$ppu->progressWidth = "300";
$ppu->progressHeight = "100";
$ppu->checkVersion("2.1.3"

$ppu->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";
}
// Smart Image Processor 1.0.4
if (isset($HTTP_GET_VARS['GP_upload'])) {
$sip = new resizeUploadedFiles($ppu);
$sip->component = "GD2";
$sip->resizeImages = "true";
$sip->aspectImages = "true";
$sip->maxWidth = "600";
$sip->maxHeight = "600";
$sip->quality = "90";
$sip->makeThumb = "true";
$sip->pathThumb = "../../images/products";
$sip->aspectThumb = "true";
$sip->naming = "prefix";
$sip->suffix = "thumb_";
$sip->maxWidthThumb = "240";
$sip->maxHeightThumb = "240";
$sip->qualityThumb = "90";
$sip->checkVersion("1.0.4"

$sip->doResize();
}
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Any help would be much appreciated. Thank you.
-Eduardo
Replied 17 Jul 2006 05:10:05
17 Jul 2006 05:10:05 A D replied:
I'm getting this same error and have done all that was suggested prior. I've noticed if the file is small (under 100k) it works .. anything larger and it spits that error out. Am I missing something? Thanks.
Replied 17 Jul 2006 11:51:15
17 Jul 2006 11:51:15 JP Trenque replied:
Same problem here. I've used Pure PHP upload for a while and it was working perfectly... until an update came out ! Now I'm getting that error too.
Any help ?
Any help ?
Replied 18 Jul 2006 01:44:34
18 Jul 2006 01:44:34 A D replied:
Bueller?
Replied 19 Aug 2006 05:16:50
19 Aug 2006 05:16:50 Sara Watterson replied:
I'm getting the same error on large files! What's the deal?
We need some help!
We need some help!
Replied 28 Aug 2006 11:42:19
28 Aug 2006 11:42:19 Patrick Woldberg replied:
It couldn't write the file to the server, check if the permissions are set correctly, also check the settings explained in the following FAQ www.dmxzone.com/go?4531
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------