Pure PHP Upload 3 Support Product Page

When is this "Fix" going to be implemented ?

Asked 13 May 2014 12:10:28
1
has this question
13 May 2014 12:10:28 reinhardt ellis posted:
When is this "Fix" going to be implemented ?

So that I dont have to manually add it all the time

if (!isset($mm_abort_edit) || !$mm_abort_edit) {

if (isset($editFormAction)) {
if (isset($_SERVER['QUERY_STRING'])) {
if (!preg_match('/.jpg/i',"GP_upload=true", $_SERVER['QUERY_STRING'])) {
$editFormAction .= "&GP_upload=true";
}
} else {
$editFormAction .= "?GP_upload=true";
}
}

Replies

Replied 14 May 2014 08:13:07
14 May 2014 08:13:07 Teodor Kuduschiev replied:
Hello reinhardt,
Could you please explain a little more detailed which 'fix' are you referring to?
Replied 14 May 2014 08:22:02
14 May 2014 08:22:02 reinhardt ellis replied:
If you have PHP 3 uploads and the PHP Smart Image processor on a page ... using either Insert of Update record it does not wait for the images to be resized and just submits the upload...

*** Please note this is using Dreamweaver CS.. and using normal "server behaviors" not the CC data bindings...

** MIRO ... has given me this fix... it actually waits for the upload and resize before it continues with the insert into the database...

so JUST after this action...
if (!isset($mm_abort_edit) || !$mm_abort_edit) {
// INSERT THE CODE HERE
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {


so it looks like this. ON BOTH THE UPDATE AND INSERT events.


if (!isset($mm_abort_edit) || !$mm_abort_edit) {
	
		if (isset($editFormAction)) {
  if (isset($_SERVER['QUERY_STRING'])) {
      if (!preg_match('/.jpg/i',"GP_upload=true", $_SERVER['QUERY_STRING'])) {
      $editFormAction .= "&GP_upload=true";
        }
  } else {
    $editFormAction .= "?GP_upload=true";
  }
}
	
	
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {







Reply to this topic