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

[studio-ui] Unable to upload image via Replace button of image controller when there is a project policy #5796

Closed
2 of 3 tasks
Euquimides opened this issue Sep 22, 2022 · 2 comments

Comments

@Euquimides
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • The issue is in the latest released 4.0.x
  • The issue is in the latest released 3.1.x

Describe the issue

If you try to upload an image via Replace button of an image controller, an error will appear that says Unable to load the selected image. Please try again or select another image. This seems to happen only if a project policy exists.

Steps to reproduce

Steps:

  1. Go to a site of your choice.
  2. Edit the Project Policy Configuration or make sure a project policy exists.
  3. Edit a Content Type that includes an image controller.
  4. Click on Replace and select

Relevant log output

No response

Screenshots and/or videos

Screenshot from 2022-09-22 14-56-44

uploadError.mp4
@phuongnq
Copy link
Member

@sumerjabri @rart This looks like a UI issue.
After the image is modified value to match the policy, the write-content API works as expected to upload a file with the new name.
After that, UI tries to fetch the old image name:
2022-09-28_08-30
2022-09-28_08-31
2022-09-28_08-31_1
2022-09-28_08-31_2

@sumerjabri sumerjabri assigned rart and unassigned phuongnq Sep 28, 2022
@sumerjabri sumerjabri changed the title [studio] Unable to upload image via Replace button of image controller when there is a project policy [studio-ui] Unable to upload image via Replace button of image controller when there is a project policy Sep 28, 2022
@rart rart assigned jvega190 and unassigned rart Sep 28, 2022
@jvega190 jvega190 moved this from Backlog to In Progress in Crafter CMS v4 Sep 29, 2022
@jvega190 jvega190 moved this from In Progress to Test & Validate in Crafter CMS v4 Oct 6, 2022
@jvega190 jvega190 assigned Euquimides and unassigned jvega190 Oct 6, 2022
@Euquimides
Copy link
Author

Hi! Updated and rechecked this issue. This fix is validated for Crafter v4. Thank you! Closing this ticket.

Crafter CMS v4 automation moved this from Test & Validate to Completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Crafter CMS v4
  
Completed
Development

No branches or pull requests

6 participants