Import doesn't import file
Shampra opened this issue ยท comments
Have you read a contributing guide?
- I have read CONTRIBUTING.md
- I have searched the existing issues and didn't find any that were similar
- I have considered creating a pull request with fixes instead of a bug report and want to proceed
Current Behavior
When we export a page (as JSON whith file and linked object) and import it again, import doesn't download files.
Expected Behavior
Files must be downloaded
Steps To Reproduce
- Create a page
- Add files (pdf, image, video, ...)
- Export page as JSON with files and linked objects
- Check exported file : a files folder is present with your files (and more... ๐ )
- Clean AT (delete page and files, included in bin)
- Import your json
- Check your page : no more files
Environment
- OS:Windows 10
- Version: Desktop 0.35.2
Anything else?
No response
Any ETA?
I'm closely following the topic to finish the conversion tool as soon as possible.
Thanks :)
@Shampra, it should be delivered with the latest release, along with other fixes for the JSON import/export issues you reported. Please check ๐
it seems to work... damn, I'll have to work on the converter again ๐
.
Thanks!
No, in fact it doesn't work at all!
It's work when we export and import from the same account.
Because the ID seems to be used to link to the already existing object? (I tried to change the name of the imported object in the json and for the file to understand : it keep the previous one!)
- If I import in a new account, it doesn't work
- So, if we import from another apps, it doesn't work (Converter can't work)
Oh, pehaps it explains this issue : https://community.anytype.io/t/imported-file-not-visible-with-set/12308
Object is not really imported.
@Shampra oof, I'm really sorry. Investigating this.
@fuksman Have you have a chance to take a look at this?
Yest, tested yesterday with 0.37.6-alpha.
- Create a page with file
- Go offline
- Export page
- change account/space
- Import page
Failed (the only change is that now the file size is indicated)
https://community.anytype.io/t/export-why-import-need-internet-access/12517/4
I've just tested today's version, and it's better than ever!
Image (and sound or pdf) files are displayed on the page. However, it's impossible to open the object.
And the same goes for other files (text, etc.).
In both cases, clicking on them takes you back to the homepage.
If it's still open, I guess it's normal, otherwise it may be useful ๐
I've just tested today's version, and it's better than ever! Image (and sound or pdf) files are displayed on the page. However, it's impossible to open the object. And the same goes for other files (text, etc.). In both cases, clicking on them takes you back to the homepage.
If it's still open, I guess it's normal, otherwise it may be useful ๐
Could you please answer to following questions regarding your problem?
- Did you use last version v0.37.17?
- Did you use export of single object or export of full space?
- Did you do it in local only mode?
- Could you describe or provide screenshot of how your page looks?
I want to be sure that importing from another source (note from Evernote ) works, so I make sure to block any potential source of recovery internal to Anytype.
-
In Anytype 0.37.17-beta in a standard account (not local only mode), I create a space, create an object page, add some stuff (here : an image, a txt file, a mp3, a pdf as link)
-
I cut the network (now or before)
-
I export the page as JSON with all checked expect archived files
-
I delete the space
-
I create a new empty space
-
File -> Import -> Anyblock : OK
In the imported page : -
the sound and the pdf works fine, I can use them inline or open them as object
-
Image is fine inline but if I want to open as object : Homage; same file file, if I click on it, I arrive on the homepage
Do you have these files in your export archive in file folder?
Yes
Here's the export (nothing sensitive, I think)
(... srry, upload doesn't work... 380ko, strange)
Uploading Anytype.20240124.152633.69.zipโฆ
Here :
https://github.com/Shampra/EvernoteToAnytype/blob/main/Anytype.20240124.152633.69.zip
It can be closed, tested ok with 0.39.0 Desktop.
Thanks