Base solution for your next web application
Open Closed

Power tool Datatype File chosen Error GetFileAllowedTypes. No method implemented in controller #12491


User avatar
0
stanley5389 created

No method Implemented What should create. MVC & Angular project Files not storing to DB as well. What to do? Need to implement where else?!

The upload URL Mismatch Screenshot_16.png

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @stanley5389

    Thank you for your feedback. We have created an issue for this, you can follow the developments here.

    We will fix this issue as soon as possible and release a new version for Power Tools. For a temporary solution, you can make the following addition.

    To resolve this issue, adding the method below to YourEntityNameController under the *.Web.Host project will resolve the issue you are experiencing.

    public string[] GetFileAllowedTypes()
    {
        return AllowedFileTypes;
    }
    

    To solve the problem of incorrect url configuration, you need to go to the CreateOrEditYourEntityModalComponent file in Angular and update the url specified in InitializeUploader in the show method to UploadFile.

    this.filesFileUploader = this.initializeUploader(
        AppConsts.remoteServiceBaseUrl + '/YourEntity/UploadFile',
        (fileToken) => (this.filesFileToken = fileToken)
    );
    

    Thank You

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)