Open Closed

Profile picture loading #7060


User avatar
0
oncalldev@cloudassert.com created
  • ABP Framework versionv 8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Auth server separated angular
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Post login, https://authserver-domain-name/api/account/profile-picture/fc6acc7a-ab15-e109-325e-3a0d8602930e request taking longer time to get response. Please find below screenshot image.png Seems the size of the response is around 34.7Mb. Due to this, Post login we were not able to see the profile icon at the top right corner until the request got completed. Attached a screenshot for your reference


29 Answer(s)
  • User Avatar
    0
    oncalldev@cloudassert.com created

    Can we connect remotely to check

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You only need to adjust the quality parameters to change the size of the image.

    e.g. 0.85, 0.8.

  • User Avatar
    0
    oncalldev@cloudassert.com created

    Can you provide me var UPPY_UPLOAD_ENDPOINT = $("#uploadEndpoint").val(); uppy endpoint URL and what does it refer,and what does getUppyHeaders refer to?

    function getUppyHeaders() { var headers = {}; headers[abp.security.antiForgery.tokenHeaderName] = abp.security.antiForgery.getToken(); return headers; }

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The UPPY_UPLOAD_ENDPOINT endpoint is @Url.Content("~/api/account/profile-picture")

    The abp.security.antiForgery.tokenHeaderName header is for CSRF/XSRF & Anti Forgery

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11