Pure PHP Upload 2 Support Product Page

Version error

Reported 15 Oct 2010 21:18:40
1
has this problem
15 Oct 2010 21:18:40 Manuel Ruiz-Falco Couto posted:
I actualize PPU to version 2.1.10, and it generate the next code:

<?php
// Pure PHP Upload 2.1.10
$ppu = new pureFileUpload();
$ppu->path = "../../docs";
$ppu->extensions = "PDF";
$ppu->formName = "addDiscurso";
$ppu->storeType = "file";
$ppu->sizeLimit = "2048";
$ppu->nameConflict = "over";
$ppu->requireUpload = "true";
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "fileCopyProgress.htm";
$ppu->progressWidth = "300";
$ppu->progressHeight = "100";
$ppu->redirectURL = "";
$ppu->checkVersion("2.1.10";
$ppu->doUpload();
?>


That is correct, but when i execute the script, the browser say this:

Upload Error
You don't have latest version of incPHPupload.php uploaded on the server.
This library is required for the current page.
Please correct and try again

if i change this line

$ppu->checkVersion("2.1.10";

for this

$ppu->checkVersion("2.1.9";

all is ok. Why?

Replies

Replied 29 Oct 2010 12:46:52
29 Oct 2010 12:46:52 Manuel Ruiz-Falco Couto replied:
Nobody has the same problem?
Replied 01 Nov 2010 10:56:40
01 Nov 2010 10:56:40 Miroslav Zografski replied:
Hello Manuel,

Go to ScriptLibrary folder, located in your site root. Find the file named incPHPupload.php and delete it from there. Then reapply the extension.

Regards,
Replied 01 Nov 2010 13:06:53
01 Nov 2010 13:06:53 Manuel Ruiz-Falco Couto replied:
Thanks Miroslav, but it's not the problem, in a new site is the same, i have done what it said anyway and remains the same, i reinstalled dreamweaver, and therefore the extension and is the same. Just happens to me?

Regards
Replied 01 Nov 2010 14:21:51
01 Nov 2010 14:21:51 Miroslav Zografski replied:
Please, post here the first 13 lines form incPureUpload.php

Regards,
Replied 01 Nov 2010 14:30:59
01 Nov 2010 14:30:59 Manuel Ruiz-Falco Couto replied:
Hi Miroslav, since i saw the problem, but that is what copy to put the extension, and in extension manager gives as version 2.1.10

The code:

// --- Pure PHP File Upload -----------------------------------------------------
// Copyright 2003 - 2010 (c) George Petrov, Patrick Woldberg, www.DMXzone.com
//
// Version: 2.1.10
// ------------------------------------------------------------------------------

class pureFileUpload
{
// Set version
var $version = '219';

var $debugger = false;

Regards
Replied 01 Nov 2010 15:27:10
01 Nov 2010 15:27:10 Manuel Ruiz-Falco Couto replied:
Hi Miroslav, if i change the version for 2110 is resolved?

Thanks and regards

Reply to this topic