[FLOW3-general] Upload temporary image

David Sporer david.sporer at gmail.com
Tue Sep 11 21:21:45 CEST 2012


Hey guys,

 

I have a Model that has three Resources which are images.

Now I want to offer the user the opportunity to crop the images before
uploading the actual form.

This is what I'm thinking about:

1.       Opening a modal that contains an upload form

2.       Upload the selected image temporarily

3.       Show the image cropper - as soon as the user has selected the area
of the image save the coordinates

4.       Now the form of the model is submitted and this is where I want to
create the final Resource (means cropping the original image and deleting it
afterwards because I only need the new one) and persist it.

 

I'm stuck at point 2. I know how to create a persisted resource but is it
necessary to persist a resource even if I only need it temporarily?

What's best practice in this scenario?

 

Thanks and best regards

David



More information about the FLOW3-general mailing list