Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Rogers 134 posts 712 karma points
    Mar 22, 2023 @ 07:53
    Daniel Rogers
    0

    Get the Guid after a file is loaded

    When I upload a file using a duplicated / slightly modified version of the umbraco dropzone code, I need to get the Guid that the file has been saved with.

    the current info that is returned is

    File done: true
    key: "c23818fe-0af2-45a6-9ed9-96dce59386d7"
    messages: []
    uploadProgress: 100
    lastModified:1679405808443
    lastModifiedDate: Tue Mar 21 2023 23:36:48 GMT+1000 (Australian Eastern Standard Time) {}
    name: "Copy of RO Final.csv"
    size: 741
    type: "text/csv"
    webkitRelativePath: ""
    [[Prototype]]: File
    

    Note the key above is a tempory key generated when the file is placed on the dropzone.

    The actual key in this case is "edfd5811-8efa-4251-ac48-5eae08371e43"

    so the question is I need to have returned the new key so I can load into a trigger for the next process to load the media (csv file) into a table.

Please Sign in or register to post replies

Write your reply to:

Draft