Nazdar.
Potreboval by som malu pomoc s php. Pouzivam nieco taketo ked chcem klasicky spracovat formular resp. subor s neho
 if(isset($_POST['upload']))
    {
      
          $file=$_FILES['file'];
          $attachment_id = upload_user_file( $file );
    }
Problem je z by som chcel nacitavat priamo obrazky so suboru. A tam som sa zasekol.
 if(isset($_POST['upload']))
    {
      
          $file="xxxx/kvader.png";
          $attachment_id = upload_user_file( $file );
    }
Kde mi to spadne. Vedel by niekto poradit? 
Dakujem