Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved api for FileUpload #1852

Merged
merged 1 commit into from
Mar 15, 2023
Merged

moved api for FileUpload #1852

merged 1 commit into from
Mar 15, 2023

Conversation

zeleniucvladislav
Copy link
Collaborator

@@ -1119,7 +1122,8 @@ public function getApiActions( $config = [], $context = null ) {
'symbolUpdate' => $pref . Brizy_Admin_Symbols_Api::UPDATE_ACTION,
'symbolDelete' => $pref . Brizy_Admin_Symbols_Api::DELETE_ACTION,
'symbolList' => $pref . Brizy_Admin_Symbols_Api::LIST_ACTION,
'mediaResizeUrl' => home_url()
'mediaResizeUrl' => home_url(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete both lines! This is the list of api actions.. not sure why you put this here.

public/editor-client/src/index.ts Outdated Show resolved Hide resolved
@@ -245,6 +245,9 @@ private function getCompilerRequiredFields( $config, $context ) {
$config['api'] = [
'media' => [
'mediaResizeUrl' => home_url()
],
'customFile' => [
'customFile' => home_url()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Raname customFile key to something else.. like customFileUrl..

public/editor-client/src/index.ts Outdated Show resolved Hide resolved
added requested changes
@zeleniucvladislav zeleniucvladislav force-pushed the 22182-PartnersFileUpload branch from aef2c34 to f0d585f Compare March 15, 2023 14:23
@zeleniucvladislav
Copy link
Collaborator Author

How it works after changes :
Screencast from 03-15-2023 04:12:07 PM.webm

@alecszaharia alecszaharia merged commit 0232aae into media-api Mar 15, 2023
@alecszaharia alecszaharia deleted the 22182-PartnersFileUpload branch March 15, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants