Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102625
    Matias Galante
    Participant

    Hello,
    When using FileUpload for Angular, before uploading the file I wondered if there is a way you can add to the body of the file? For example, there are csv files I want to upload as text and I want to include some metadata in the body. Is there a way to do this?

    Thanks,
    Matias

    #102631
    ivanpeevski
    Participant

    Hello Matias,

    Unfortunately, this functionality is not natively supported yet, however it is possible to capture and create modified copies of the uploaded files:
    https://stackblitz.com/edit/github-k6uejf?file=src%2Fapp%2Fapp.component.ts

    That said, modifying the files on the servers side, if possible, is a much cleaner solution, as Javascript doesn’t support directly modifying uploaded files.
    You can also use our SetHeaders() Method to send any additional data together with the files.

    If you have any other questions, please do not hesitate to contact us again!
    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.