This is a migrated thread and some comments may be shown as answers.

[Solved] Upload and Custom Metadata

1 Answer 140 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marc Simkin
Top achievements
Rank 2
Iron
Iron
Veteran
Marc Simkin asked on 27 Jul 2011, 12:46 PM
I'm trying to figure out the best UI to design so that my users can associate custom metadata with the files being uploaded.  I know that the upload control supports sending custom metadata to the server.

I'm just having issues trying to decide how to design the UI.

If I use the upload control in async mode, and have a list to that contains metadata attributes, how can I make sure that the jQuery validation fires before the actual upload occurs?

Does it make sense to have the upload and metadata list inside it's own form tag?  Should it be a separate window, or can it be within another window/dialog?

Would it make more sense to do this as a grid with two columns, one for the meta data and one for the upload control?  Then there would be a one for one relationship with the upload control and the grid cell containing the meta data.

Any thoughts suggestions will be appreciated.

thanks

marc

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 29 Jul 2011, 09:27 AM
Hello Marc,

The use of an asynchronous upload in your scenario requires a bit of a mental shift. Submitting a form is no longer an atomic action from the servers point of view. It's more like a transaction. 

What we suggest is to:
    * Generate an unique ID for the current user
    * Store the uploaded files in a temporary location (using the unique ID)
    * Upon successful form submission move the files to their final destination

The upload and file metadata need not to be in a single form, as we have the unique ID to help us keep the association.

We have a code library that demonstrates the use of the Upload in Grid along with additional fields.

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Tags
Upload
Asked by
Marc Simkin
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
T. Tsonev
Telerik team
Share this question
or