3

I need to upload files from the front in my plugin. I got the success with it, but then now I have an issue during uploading larger file than 1.5 KB. Whenever I select file larger than 1.5 KB, i get error:

1298012500: Required argument "newRockupload" is not set for Rock\RockUpload\Controller\RockuploadController->create.

enter image description here

So i have put this code in initializeCreateAction() of controller to debug:

$arguments = $this->request->getArguments();

DebuggerUtility::var_dump($arguments);

exit;

So whenever i select file which has lower size than 1.5 KB, I get posted data successfully in controller:

enter image description here

And whenever i select larger file than 1.5 KB i am getting nothing like this:

enter image description here

I tried and surfed lot. Need Help..

Community
  • 1
  • 1
Sameer Bhayani
  • 231
  • 8
  • 15

1 Answers1

1

As it mentioned in the comments, this is probably an issue with the URL you are trying to send.

The parameter is not there in the TYPO3, (maybe not even on the server side.) I guess something is wrong with your fluid form.

You should inspect your request. You can check it in your browser / apache access log / even with a debugger in the TYPO3 code.

Probably you are trying to send the data of the file in the Request Header instead of the Request Body.

You have probably some characters already in your URL so a file > 1.5 kb exceeds the limit of around 2000 characters in the url.

See also here about the limit of the url: What is the maximum length of a URL in different browsers?

András Ottó
  • 7,605
  • 1
  • 28
  • 38