Pure PHP Upload 2 Support Product Page
incPHPupload.php
Asked 15 Mar 2010 00:46:25
1
has this question
15 Mar 2010 00:46:25 Phil Boyle posted:
Hi I've just upgraded to the latest version og php upload and used on it on my current project and got the following error message.
'Upload Error
You don't have latest version of incPHPupload.php uploaded on the server.
This library is required for the current page.'
My hosting company wanted to know 'what incPHPupload.php is as there are many classes which people have written with similar names.' and that it is running on a Windows 2003 system -does this make a difference? and they are suggesting I migrate to a Windows 2008 R2 platform.
Any help is appreciated
Thanks
Phil
Replies
Replied 15 Mar 2010 10:02:33
15 Mar 2010 10:02:33 Phil Boyle replied:
I tried downloading the extension again as you suggested to somebody else and reinstalled it. This time I got the following error message
Warning: move_uploaded_file(products/cameron2.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php285.tmp' to 'products/cameron2.jpg' in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Any suggestions?
Thanks
Phil
Warning: move_uploaded_file(products/cameron2.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php285.tmp' to 'products/cameron2.jpg' in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Any suggestions?
Thanks
Phil
Replied 15 Mar 2010 11:01:10
15 Mar 2010 11:01:10 Miroslav Zografski replied:
Hello Phil,
The latest errors indicates that there is a permission problem with your upload folder. Place following line in your upload page right before the pure PHP upload code:
This will output some debug info before and after upload process. You will need to remove any redirection set up in order to get the debug info. Provide the info here.
On behalf of incPHPupload.php it holds all the classes that drive the Pure PHP Upload. I can guarantee that it is build in such a way so it will not interfere with any other application. It classes are with unique name-space and the position in ScriptLibrary folder will secure from overwriting it or other scrip.
Regards,
The latest errors indicates that there is a permission problem with your upload folder. Place following line in your upload page right before the pure PHP upload code:
<?php $DMX_debug = true; ?>
This will output some debug info before and after upload process. You will need to remove any redirection set up in order to get the debug info. Provide the info here.
On behalf of incPHPupload.php it holds all the classes that drive the Pure PHP Upload. I can guarantee that it is build in such a way so it will not interfere with any other application. It classes are with unique name-space and the position in ScriptLibrary folder will secure from overwriting it or other scrip.
Regards,
Replied 15 Mar 2010 21:17:35
15 Mar 2010 21:17:35 Phil Boyle replied:
Thanks Miroslav
The code produced was this
<font face="verdana" size="2"><br/><font color="#009900"><b>Pure PHP Upload version 2.1.10</b></font><br/><br/></font><font face="verdana" size="2">PHP version(<font color="#990000">5.2.6</font><br/></font><font face="verdana" size="2">path(<font color="#990000">products</font><br/></font><font face="verdana" size="2">extensions(<font color="#990000">GIF,JPG,JPEG,BMP,PNG</font><br/></font><font face="verdana" size="2">redirectURL(<font color="#990000"></font><br/></font><font face="verdana" size="2">storeType(<font color="#990000">file</font><br/></font><font face="verdana" size="2">sizeLimit(<font color="#990000"></font><br/></font><font face="verdana" size="2">nameConflict(<font color="#990000">over</font><br/></font><font face="verdana" size="2">minWidth(<font color="#990000"></font><br/></font><font face="verdana" size="2">minHeight(<font color="#990000"></font><br/></font><font face="verdana" size="2">maxWidth(<font color="#990000"></font><br/></font><font face="verdana" size="2">maxHeight(<font color="#990000"></font><br/></font><font face="verdana" size="2">saveWidth(<font color="#990000"></font><br/></font><font face="verdana" size="2">saveHeight(<font color="#990000"></font><br/></font><font face="verdana" size="2">timeout(<font color="#990000">600</font><br/></font>
Regards
Phil
The code produced was this
<font face="verdana" size="2"><br/><font color="#009900"><b>Pure PHP Upload version 2.1.10</b></font><br/><br/></font><font face="verdana" size="2">PHP version(<font color="#990000">5.2.6</font><br/></font><font face="verdana" size="2">path(<font color="#990000">products</font><br/></font><font face="verdana" size="2">extensions(<font color="#990000">GIF,JPG,JPEG,BMP,PNG</font><br/></font><font face="verdana" size="2">redirectURL(<font color="#990000"></font><br/></font><font face="verdana" size="2">storeType(<font color="#990000">file</font><br/></font><font face="verdana" size="2">sizeLimit(<font color="#990000"></font><br/></font><font face="verdana" size="2">nameConflict(<font color="#990000">over</font><br/></font><font face="verdana" size="2">minWidth(<font color="#990000"></font><br/></font><font face="verdana" size="2">minHeight(<font color="#990000"></font><br/></font><font face="verdana" size="2">maxWidth(<font color="#990000"></font><br/></font><font face="verdana" size="2">maxHeight(<font color="#990000"></font><br/></font><font face="verdana" size="2">saveWidth(<font color="#990000"></font><br/></font><font face="verdana" size="2">saveHeight(<font color="#990000"></font><br/></font><font face="verdana" size="2">timeout(<font color="#990000">600</font><br/></font>
Regards
Phil
Replied 16 Mar 2010 10:23:14
16 Mar 2010 10:23:14 Miroslav Zografski replied:
Hello Phil,
What's with the output AFTER upload?
Regards,
What's with the output AFTER upload?
Regards,
Replied 19 Mar 2010 02:53:32
19 Mar 2010 02:53:32 Phil Boyle replied:
After I try to upload
This
Pure PHP Upload version 2.1.10
PHP version(5.2.6)
path(products)
extensions(GIF,JPG,JPEG,BMP,PNG)
redirectURL()
storeType(file)
sizeLimit()
nameConflict(over)
minWidth()
minHeight()
maxWidth()
maxHeight()
saveWidth()
saveHeight()
timeout(600)
Setting timeout
fullPath = /cms/products/
Check path
Starting to progress files
field = pImage
filename = helmet1.jpg
CleanUp FileName
new filename = helmet1.jpg
Checking extension
comparing JPG with GIF
comparing JPG with JPG
comparing JPG with JPEG
comparing JPG with BMP
comparing JPG with PNG
Overwrite existing file
Moving the file to the destination
Checking permissions
Warning: move_uploaded_file(products/helmet1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php4DB.tmp' to 'products/helmet1.jpg' in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Upload Error
Not enough permissions
File products/helmet1.jpg can not be created,
Set the permissions of the parentmap correctly
Please correct and try again
Warning: unlink(products/helmet1.jpg) [function.unlink]: Permission denied in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 403
Thanks
Phil
This
Pure PHP Upload version 2.1.10
PHP version(5.2.6)
path(products)
extensions(GIF,JPG,JPEG,BMP,PNG)
redirectURL()
storeType(file)
sizeLimit()
nameConflict(over)
minWidth()
minHeight()
maxWidth()
maxHeight()
saveWidth()
saveHeight()
timeout(600)
Setting timeout
fullPath = /cms/products/
Check path
Starting to progress files
field = pImage
filename = helmet1.jpg
CleanUp FileName
new filename = helmet1.jpg
Checking extension
comparing JPG with GIF
comparing JPG with JPG
comparing JPG with JPEG
comparing JPG with BMP
comparing JPG with PNG
Overwrite existing file
Moving the file to the destination
Checking permissions
Warning: move_uploaded_file(products/helmet1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php4DB.tmp' to 'products/helmet1.jpg' in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 192
Upload Error
Not enough permissions
File products/helmet1.jpg can not be created,
Set the permissions of the parentmap correctly
Please correct and try again
Warning: unlink(products/helmet1.jpg) [function.unlink]: Permission denied in C:\domains\ericksenhonda.co.nz\wwwroot\ScriptLibrary\incPureUpload.php on line 403
Thanks
Phil
Replied 19 Mar 2010 13:19:08
19 Mar 2010 13:19:08 Miroslav Zografski replied:
Hello Phil,
It appears as a permission problem with your upload folder. Check for correct permissions applied to it.
Regards,
It appears as a permission problem with your upload folder. Check for correct permissions applied to it.
Regards,