diff --git a/src/views/feature_type/Feature_type_detail.vue b/src/views/feature_type/Feature_type_detail.vue
index fd9ff464f2159f5c1d43fbff72331d4da21f3bac..1beab1d4ae462542b6390695b535570590d84a6e 100644
--- a/src/views/feature_type/Feature_type_detail.vue
+++ b/src/views/feature_type/Feature_type_detail.vue
@@ -539,9 +539,9 @@ export default {
         slug: this.slug,
         feature_type_slug: this.$route.params.feature_type_slug,
       };
-      if (this.$route.params.geojson) {
+      if (this.$route.params.geojson) { //* import after redirection, for instance with data from catalog
         payload['geojson'] = this.$route.params.geojson;
-      } else if (this.fileToImport && !this.fileToImport.name) {
+      } else if (this.fileToImport.size > 0) { //* import directly from geojson
         payload['fileToImport'] = this.fileToImport;
       } else {
         this.importError = "La ressource n'a pas pu ÃĒtre rÊcupÊrÊ.";