mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Fix missing willUpload
hook for drag-and-drop chunked upload
Summary: Ref T9324. When you upload a normal file, we call `willUpload` and then `didUpload`. When you upload a chunked file, we never call `willUpload`. This can get things out of sync. Make sure we invoke this event for both chunked and non-chunked uploads. Test Plan: Got cleaner behavior (redirect after all uploads finish) in new Phacility file upload area. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9324 Differential Revision: https://secure.phabricator.com/D14083
This commit is contained in:
parent
7425407c12
commit
d2374c468f
2 changed files with 13 additions and 11 deletions
|
@ -11,7 +11,7 @@ return array(
|
||||||
'core.pkg.js' => '47dc9ebb',
|
'core.pkg.js' => '47dc9ebb',
|
||||||
'darkconsole.pkg.js' => 'e7393ebb',
|
'darkconsole.pkg.js' => 'e7393ebb',
|
||||||
'differential.pkg.css' => '2de124c9',
|
'differential.pkg.css' => '2de124c9',
|
||||||
'differential.pkg.js' => '813c1633',
|
'differential.pkg.js' => '52d725be',
|
||||||
'diffusion.pkg.css' => '385e85b3',
|
'diffusion.pkg.css' => '385e85b3',
|
||||||
'diffusion.pkg.js' => '0115b37c',
|
'diffusion.pkg.js' => '0115b37c',
|
||||||
'maniphest.pkg.css' => '4845691a',
|
'maniphest.pkg.css' => '4845691a',
|
||||||
|
@ -429,7 +429,7 @@ return array(
|
||||||
'rsrc/js/application/uiexample/gesture-example.js' => '558829c2',
|
'rsrc/js/application/uiexample/gesture-example.js' => '558829c2',
|
||||||
'rsrc/js/application/uiexample/notification-example.js' => '8ce821c5',
|
'rsrc/js/application/uiexample/notification-example.js' => '8ce821c5',
|
||||||
'rsrc/js/core/Busy.js' => '59a7976a',
|
'rsrc/js/core/Busy.js' => '59a7976a',
|
||||||
'rsrc/js/core/DragAndDropFileUpload.js' => '07de8873',
|
'rsrc/js/core/DragAndDropFileUpload.js' => 'ad10aeac',
|
||||||
'rsrc/js/core/DraggableList.js' => 'a16ec1c6',
|
'rsrc/js/core/DraggableList.js' => 'a16ec1c6',
|
||||||
'rsrc/js/core/FileUpload.js' => '477359c8',
|
'rsrc/js/core/FileUpload.js' => '477359c8',
|
||||||
'rsrc/js/core/Hovercard.js' => '14ac66f5',
|
'rsrc/js/core/Hovercard.js' => '14ac66f5',
|
||||||
|
@ -718,7 +718,7 @@ return array(
|
||||||
'phabricator-core-css' => 'a76cefc9',
|
'phabricator-core-css' => 'a76cefc9',
|
||||||
'phabricator-countdown-css' => 'e7544472',
|
'phabricator-countdown-css' => 'e7544472',
|
||||||
'phabricator-dashboard-css' => 'eb458607',
|
'phabricator-dashboard-css' => 'eb458607',
|
||||||
'phabricator-drag-and-drop-file-upload' => '07de8873',
|
'phabricator-drag-and-drop-file-upload' => 'ad10aeac',
|
||||||
'phabricator-draggable-list' => 'a16ec1c6',
|
'phabricator-draggable-list' => 'a16ec1c6',
|
||||||
'phabricator-fatal-config-template-css' => '8e6c6fcd',
|
'phabricator-fatal-config-template-css' => '8e6c6fcd',
|
||||||
'phabricator-feed-css' => 'ecd4ec57',
|
'phabricator-feed-css' => 'ecd4ec57',
|
||||||
|
@ -885,14 +885,6 @@ return array(
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
'javelin-workflow',
|
'javelin-workflow',
|
||||||
),
|
),
|
||||||
'07de8873' => array(
|
|
||||||
'javelin-install',
|
|
||||||
'javelin-util',
|
|
||||||
'javelin-request',
|
|
||||||
'javelin-dom',
|
|
||||||
'javelin-uri',
|
|
||||||
'phabricator-file-upload',
|
|
||||||
),
|
|
||||||
'087e919c' => array(
|
'087e919c' => array(
|
||||||
'javelin-install',
|
'javelin-install',
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
|
@ -1658,6 +1650,14 @@ return array(
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
'javelin-install',
|
'javelin-install',
|
||||||
),
|
),
|
||||||
|
'ad10aeac' => array(
|
||||||
|
'javelin-install',
|
||||||
|
'javelin-util',
|
||||||
|
'javelin-request',
|
||||||
|
'javelin-dom',
|
||||||
|
'javelin-uri',
|
||||||
|
'phabricator-file-upload',
|
||||||
|
),
|
||||||
'b064af76' => array(
|
'b064af76' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
|
|
|
@ -230,6 +230,8 @@ JX.install('PhabricatorDragAndDropFileUpload', {
|
||||||
.setStatus('allocate')
|
.setStatus('allocate')
|
||||||
.update();
|
.update();
|
||||||
|
|
||||||
|
this.invoke('willUpload', file);
|
||||||
|
|
||||||
var alloc_uri = this._getUploadURI(file)
|
var alloc_uri = this._getUploadURI(file)
|
||||||
.setQueryParam('allocate', 1);
|
.setQueryParam('allocate', 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue