CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #36392

File upload on different server (alternative action URL) and call finishers afterwards

Added by Mungan about 1 year ago. Updated 6 months ago.

Status:Resolved Start date:2012-04-20
Priority:Should have Due date:
Assignee:Reinhard Führicht % Done:

0%

Category:-
Target version:-
Votes: 0

Description

For large files I'd like to upload them on a different server using a
different action="..."-URL in the last step.

So, as template I use something like:

<!-- ###TEMPLATE_FORM1### begin -->
... <form method="post" action="###REL_URL###" enctype="multipart/form-data"> ...
<!-- ###TEMPLATE_FORM1### end -->

<!-- ###TEMPLATE_FORM2### begin -->
... <form method="post" action="###destination###" enctype="multipart/form-data"> ...
<!-- ###TEMPLATE_FORM2### end -->

When the form has been transmitted to the different server I REDIRECT back to the page
where I was, before I hit submit button in step 2.

My problem is, that I always start ober with the first step again.
Instead, I'd like to get back into formhandler right to calling all my FINISHERS.

How can this be accomplished?

Many thanks for any hints on how to solve this.

History

Updated by Mungan about 1 year ago

During the WE I found a solution that worked for me.

When I redirect to the original form page I add the following GET params:

&formhandler[submitted]=1&formhandler[step-3-next]=xxx&formhandler[randomID]=i_use_a_fixed_value_here

As I have a 2-step-form I need to write "step-3-next" here for the last step.
I use uniqueFormID as described here: http://www.typo3-formhandler.com/documentation/session/session-typo3/

So, maybe this is worth a little entry in the documentation as an example for flexibility in uploading to another server.

Hope this will be helpful.

Updated by Reinhard Führicht 6 months ago

  • Status changed from New to Resolved
  • Assignee set to Reinhard Führicht

Also available in: Atom PDF