1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11915] Provide the URL to the attachment when it's uploaded.

PHPBB3-11915
This commit is contained in:
Cesar G
2013-11-27 14:48:38 -08:00
parent 708622a0bb
commit 9c1cacae42
3 changed files with 29 additions and 14 deletions

View File

@@ -1582,8 +1582,10 @@ class parse_message extends bbcode_firstpass
if (isset($this->plupload) && $this->plupload->is_active())
{
$download_url = append_sid("{$phpbb_root_path}download/file.{$phpEx}", 'mode=view&id=' . $new_entry['attach_id']);
// Send the client the attachment data to maintain state
$json_response->send($this->attachment_data);
$json_response->send(array('data' => $this->attachment_data, 'download_url' => $download_url));
}
}
}