Working with attachments as regular user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akenateb
    Junior Member
    • May 2024
    • 2

    Working with attachments as regular user

    Good morning, everyone. I have a site where in a section I generate pdf translation certificates, the certificate has a button to be replaced by another pdf file (which must have the same name) the case is that if I am administrator I can change the file for another, but if I am not administrator does not allow me to do so. The error that appears in the console indicates a 400 (Bad Request) with the specific message from the server: “Params ‘field’ and ‘parentType’ not passed along with ‘file’”. This means that the field and parentType parameters are not being sent along with the file in the request. But if I do it as an administrator, i.e. change the user type in Admin->User from 'regular' to 'admin' it does allow me to change, but I give the user admin privileges and I don't want that.

    Would anyone know how I can allow a 'regular' user to use attachments or how to fix this ? thanks in advance.

    Best Regards​
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    Akenateb if you'd like to receive more adjusted solution, please provide more details, because your description is too generic.
    From my perspective, you can add a script in formula which will rename the file. You can also add to a feature which generate this pdf additional check which will rename file if exists with the same name.

    Comment

    Working...