You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/client/src/admin/uploads/ProjectBackgroundJobContext.tsx
+19-12
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ export default function DataUploadDropzone({
204
204
message=t(`"${file.name}" is a projection file.`);
205
205
isPartOfShapefile=true;
206
206
}elseif(file.name.endsWith(".shp")){
207
-
message=t(`"${file.name}" is a bare shapefile.`);
207
+
message=t(`"${file.name}" should be a zipfile.`);
208
208
isPartOfShapefile=true;
209
209
}elseif(file.name.endsWith(".xml")){
210
210
message=t(`"${file.name}" is an XML file.`);
@@ -218,7 +218,7 @@ export default function DataUploadDropzone({
218
218
if(message){
219
219
constdescription=isPartOfShapefile
220
220
? t(
221
-
`Parts of shapefiles cannot be uploaded directly. To upload a shapefile, create a .zip file with all related files (.shp, .prj, .shx, etc) and upload that zipfile.`
221
+
`Parts of shapefiles cannot be uploaded directly. To upload a shapefile, create a zipfile (.zip) with all related sidecar files (.shp, .prj, .shx, etc). At a minimum, your upload will need to contain the geometry file (.shp) and the projection file (.prj).`
222
222
)
223
223
: isUnsupportedRaster
224
224
? t(
@@ -230,6 +230,7 @@ export default function DataUploadDropzone({
230
230
return{
231
231
message,
232
232
description,
233
+
isPartOfShapefile,
233
234
};
234
235
}else{
235
236
returntrue;
@@ -249,16 +250,22 @@ export default function DataUploadDropzone({
249
250
for(constfileofacceptedFiles){
250
251
constsupported=isUploadForSupported(file);
251
252
if(supported!==true){
252
-
const{ message, description }=supported;
253
-
constresponse=awaitconfirm(message,{
254
-
description,
255
-
secondaryButtonText: "Upload anyway",
256
-
primaryButtonText: "Cancel",
257
-
});
258
-
if(!response){
259
-
filteredFiles.push(file);
260
-
// Something weird happens when opening these confirm dialogs over and over again
0 commit comments