Skip to content

Commit

Permalink
check driver type not id
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Oct 16, 2023
1 parent b5c117e commit 635d345
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ public static String getDriverPrefix(String driverId) {
}

public static boolean isDirectUploadEnabled(String driverId) {
return (DataAccess.S3.equals(driverId) && Boolean.parseBoolean(System.getProperty("dataverse.files." + DataAccess.S3 + ".upload-redirect"))) ||
return (System.getProperty("dataverse.files." + driverId + ".type").equals(DataAccess.S3) && Boolean.parseBoolean(System.getProperty("dataverse.files." + driverId + ".upload-redirect"))) ||
Boolean.parseBoolean(System.getProperty("dataverse.files." + driverId + ".upload-out-of-band"));
}

Expand Down

0 comments on commit 635d345

Please sign in to comment.