Copied to clipboard

Flag this post as spam?

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


  • Kim Andersen 1447 posts 2196 karma points MVP
    Aug 02, 2010 @ 22:15
    Kim Andersen
    0

    Get list of file paths to the uploaded files

    I've got the frontend uploader to work thanks to the macro included in this package. But is there any way of getting a list of the uploaded files when the uploads are done?

    What I'd like to get, is a list of file paths to all of the uploaded files after the last file has been uploaded. If I can get a list of paths to the files it can solve my issue about "attaching" images in an e-mail that I talked about here: Attach image to an email through umbraco.library:SendMail

    Because then I can just include the paths in my mail body. But if anyone knows how to get a list of paths to the uploaded files I would be more than happy.

    Thank you very much in advance :)

    /Kim A

  • Emanuel 63 posts 283 karma points
    Aug 04, 2010 @ 13:55
    Emanuel
    0

    Hi Kim,

    Unfortunately, I don't see a quick way to grab a list of the attached files, as the upload handler is called once per file and has no "memory" of what files have been uploaded so far and wouldn't know when the uploads stop.

    Having said that, there is an event on the uploadify jQuery plugin you can hook up into, that runs some custom javascript when all files have been uploaded. Getting that to work would be hacky, but it could work. My only concern is getting the actual "/media/xxx/file.txt" paths from the handler, which isn't currently supported.

    The Uploadify handler has an event you can subscribe to, UploadifyHandler.FileUploaded, but it triggers before the files are saved to Umbraco.

     

    So, to sum up, what you requested is not something that can happen just now, but definitely food for thought for a new version.

     

    Thanks,

    Emanuel

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Aug 05, 2010 @ 21:24
    Kim Andersen
    0

    Thank you for your answer Emanuel.

    Maybe I should take a look at the Uploadify documentation. Otherwise I have to figure something else out.

    But thanks guys for the great package anyway. The backend functionality works perfectly and gives big value when someone have to upload a lot of files. Thumbs up!

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft