[FLOW3-general] Persisting resources
Adrian Föder
afoeder at live.de
Tue Oct 25 17:38:51 CEST 2011
Hello list,
please consider the following structure:
https://gist.github.com/1313125
I would like to do an "ajax"-like iframe file uploader. So I have an
iFrame where I put a file and upload it. After uploading it should give
me a/the resource pointer back, besides ideally the image itself.
If an error occurs (or a validator fails, e.g. wrong measurements or no
image file at all [*this calls for a generic ImageFileValidator ;-)], I
would like to display that error.
What I gist'ed here are just trials, but actually it half-way works: the
uploaded image file is stored as file in my Data/Persistent/Resources
folder AND an appropriate record in the database-table
typo3_flow3_resource_resourcepointer is created.
Two things are missing: an entry in the ...resource_resource table (i.e.
the persistence of the Resource object) and an idea how I could send
information back, like the image itself and identity information.
After all I would like to get the pointer back so I can inject this
pointer inside the "parent" object's form. After saving that object the
wiring is done.
Consider the composing progress of a web-based email: You have an
(anonymous, not-yet-identitie'd) Email open where you can type To:, CC:,
text, and add attachments. The attachments have to be uploaded parallely.
Thanks for your ideas,
best,
adrian
More information about the FLOW3-general
mailing list