copy local path to temp directory
If a local path is provided, copy it to a temp dir before importing. Otherwise when the upload is deleted, the original local path file ends up getting deleted too.
If a local path is provided, copy it to a temp dir before importing. Otherwise when the upload is deleted, the original local path file ends up getting deleted too.