lazurey / strapi-plugin-content-export-import

Strapi plugin for content export and import
166 stars 47 forks source link

Is there a limit for the json data and is there an indicator when the data is succusefully imported? #19

Open chloesun opened 3 years ago

chloesun commented 3 years ago

Thanks for the plugin! I'm new to this tool, and I tried to import a 12MB JSON file to Strapi. Is this too big? content

The plugin can read the data, but when I click 'import', it turned to 'please wait' for a few seconds, and went back to 'import'. I checked the collection types, the data is not there. I wonder if the file I tried to import is too large, and also is there a pop-up or something the users would expect to see when the import is successful or not?

Thanks again!

chloesun commented 3 years ago

Just noticed that I got a 413 Payload Too Large response....

dappiu commented 3 years ago

If you are on production, you may have to change the maximum POST size accepted by your web server. If you are using Nginx, the relevant config option is client_max_body_size

In development I don't know if there is a limit for the upload size, the only thing that I could think of is the maxFileSize config option of the upload plugin, as shown here, but I don't think that JSON fields are passing through upload plugin

This issue may help you: https://github.com/strapi/strapi/issues/7035

chloesun commented 3 years ago

@dappiu Thanks for your input! I have another question to follow up, when I need to delete all the content of a type, it actually only delete 100 records each time? Is there a way to delete all at one shot? del

dappiu commented 3 years ago

This is because Strapi recently changed the way in which default _limit parameter is set on API request, I think, and this plugin was not updated since then. Which version of Strapi are you using? I think that you should work around with defaultLimit setting it to -1 maybe, but I cannot remember now. Anyway you can read about that in detail here and here

chloesun commented 3 years ago

Thanks @dappiu I use v3.4.1