Bug #26886
Uploaded resources get lost on validation errors
| Status: | Resolved | Start date: | 2011-05-18 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Sebastian Kurfuerst | % Done: | 100% |
|
| Category: | Resource | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0 beta 1 | |||
| PHP Version: | Complexity: | |||
| Has patch: | FLOW3 version affected: | |||
| Votes: | 0 |
Description
If a resource is created through an upload (via ResourceTypeConverter) and a validation error occurs, there is currently no way of retrieving the resource in the referring action (neither from the controller nor in Fluid).
One solution would be to always persist the ResourcePointer on creation and extend the ResourceTypeConverter so that it can handle a serialized string that contains the Resource hash and required meta info (mime type, filename, ...)
Related issues
| related to Conference Management - Task #26667: Fix Image Upload from plugin | Resolved | 2011-05-06 | ||
| related to TYPO3.Flow - Bug #25966: ResourcePointer breaks if you upload the same file twice | Resolved | 2011-04-14 | ||
| blocks Conference Management - Story #26663: Solve FLOW3/Phoenix bugs for sprint "Call for Papers" | Resolved | 2011-05-06 |
Associated revisions
[+BUGFIX] (Resource): Fix file upload
- ResourcePointer instances are now automatically created (or fetched)
as soon as an image is uploaded. - the ResourceTypeConverter can now build Resource objects which
have been uploaded before.
Change-Id: Ibc6970524967d18fdab84639f7d53ddcf8c27c00
Related: #26667
Resolves: #25966
Resolves: #26886
History
Updated by Sebastian Kurfuerst about 2 years ago
- Status changed from New to Under Review
- Target version set to 1.0 beta 1
- % Done changed from 0 to 100
Updated by Mr. Hudson about 2 years ago
Patch set 2 of change Ibc6970524967d18fdab84639f7d53ddcf8c27c00 has been pushed to the review server.
It is available at http://review.typo3.org/2222
Updated by Sebastian Kurfuerst about 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset 3fd0ed84a2aa1162cac9af664565add23a280b67.