title: manually creating an Symfony UploadedFile
body: <p>I'm facing following problem and can't seem to figure this one out.
  I wrote an API endpoint accepting a POST with binary data (header: content-type:image/jpeg).</p>
  
  <p>I know i can read out the raw string with <code>file_get_content('php://input')</code> or Laravel's <code>$request-&gt;getContent()</code>.
  PHP also has a function <code>createimagefromstring($string)</code> which also seems to read the string in correctly.</p>
  
  <p>What i'd like to do is create an UploadedFile from this raw data , so that I can handle it with already written functions.</p>
  
  <p>Is this possible?</p>
  
  <p>Thank you in advance</p>