This is already handled in ddraw_surface_create_texture().
Attach a file by drag & drop or click to upload