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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user