anyproto / anytype-heart

Shared library for Anytype clients

Home Page:https://anytype.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Before export :
image

After import exported JSON :
image

Expected Behavior

Files must be downloaded

Steps To Reproduce

  1. Create a page
  2. Add files (pdf, image, video, ...)
  3. Export page as JSON with files and linked objects
  4. Check exported file : a files folder is present with your files (and more... ๐Ÿ˜…)
  5. Clean AT (delete page and files, included in bin)
  6. Import your json
  7. 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.

Always with v0.36.14-alpha

Any ETA please?
 

@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

@hskrtich @Shampra hey there. Yes, we confirm that the problem is on our side, and we aim to fix it along with the files refactoring (files as objects, expected to be delivered in the next release).

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?

  1. Did you use last version v0.37.17?
  2. Did you use export of single object or export of full space?
  3. Did you do it in local only mode?
  4. 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)
    image

  • I cut the network (now or before)

  • I export the page as JSON with all checked expect archived files
    image

  • 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
    demobugAnytype

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