Export & Import Correct Method?
-
Hi.
I am using the latest version of APF and I am trying to get import and export to work.
I have used the field types ‘export’ & ‘import’. The export seems to export a JSON file perfectly fine. However the import gives me an error:
The uploaded file type is not supported: application/json
My plugin source is hosted here:
https://bitbucket.org/ben_noou/noouswatches/src/b1104e39ff7b0a1f30cd06f8ca208dd42536b82b/NoouSwatches.php?at=master&fileviewer=file-view-defaultI have seen in the V3 docs there seems to be a slightly different import method however I cannot seem to get my head around it. I was wondering if you could provide me with a solution to this?
My Current import code:
` array( // import button
‘field_id’ => ‘import_button’,
‘type’ => ‘import’,
)`Thank you very much!
- The topic ‘Export & Import Correct Method?’ is closed to new replies.