Add and remove relations for files, such as images, PDF, etc + improved management of files

Is your feature request related to a problem? Please describe.
This feature request is not strictly related to a problem, but it does seem to violate the basic principles on which Anytype is built on.

Describe the solution you’d like
Anytype is built on the fundamental concept that everything - including files - are an object. And each object is connected with relations. However, as of this moment, it is not possible to add or edit relations for files (images, PDFs, audio, etc), only the default relation for each file type is available (size, creation date, width, height, ISO, etc).

Adding a feature to add and edit relations for files would fulfill the expected behavior on which Anytype is built on - that everything is an object and that every object is connected with relations.

Additionally, adding the ability to connect file objects with relations can help create a few new usecases, such as a tag-based file management system, as outlined in this article.

A image of the current interface for viewing a file. There is no option to create or edit relations.

Describe alternatives you’ve considered
There are a few applications which exist for having a tag-based file organizations system, such as the Mac Finder, but integration with Anytype is not possible.

Additional context

18 Likes

+1 Great request :smiley:

Even without the ability to add a relation to a file object, we can sort of mimic it by creating a custom type with an attachment relation and a tag relation and can filter them by tag in a set.


But yes, it would be great to have the ability to add relations to file objects. TBH, it would be great to build on that and add the ability to add relation to any objects - i.e, even audio, video and images as well

4 Likes

Wow - thanks for drawing my attention to the Attachment relation. I’d completely neglected to use that relation, and it seems very powerful for some other uses that I’d had in mind. Although as you said, yes, having the ability to add tags and relations for files would make the software much more powerful and flexible for many new use cases.

4 Likes

This is a must have for finding back files. Many relations could be automatically added upon uploading the file into Anytype such as:

  • File name (already there, but not as a relation I think)
  • File size (same, it is in the details about the file, but not something searchable/findable)
  • File type (like Word document, PDF, web page, etc., or at least the file extension in text/as a tag)
  • Creation date
  • Created by
  • Last modified date
  • Last modified by
  • Upload date
  • Uploaded by
  • File type specific properties such as
    • Version
    • Word count
    • Resolution
    • Subject
    • Etc.
6 Likes

I love the idea of being able to add relations to images, pdfs, and such. It would make file-specific sets much, much more powerful.

5 Likes

I like idea, i wanna to file system suport for better intergration with my OS device like drive

1 Like

WHAT DO YOU RECOMMEND

Allocate a more specific file type to each uploaded file. This new file type should allow us to create sets, filter and change the name of the file. This would allow me to create sets of all my pdfs with a specific tag (which I can add) in Anytype. PDFs are just an example. It could also be audio files or other types.

A good example is Capacities in this regard. They sort the file typed directly into a specific database (in our case this would be “type”) and show them on a single page.

HOW COULD IT BE DONE

Check for the file extensions and assign them to the specific type.

REAL WORLD USE CASES

Have all of the pdfs in one set which I can then tag etc. This allows me to easily find all the pdfs related to a certain topic.

RECOMMENDED ALTERNATIVES

Gather all the items on a single page. You can also create a set of file name relations and filter i.e. for the term “pdf” but this is just a workaround.

2 Likes

Hi! Even though it is not straight forward, I believe this is already possible in Anytype for Desktop 0.27.0:

  1. Open Anytype
  2. Search for the “File extension Relation
    image
  3. Click the “Create set” button
  4. (optionally) rename your set
  5. Add a filter, either by clicking on the “File extension” column > “Add filter”

    Or by clicking on the filter icon at the top right of the Set > “Filters”
    image
  6. Finally, set up your filter to your needs. I’m filtering on any extension that contains “pdf”:
    image
  7. As a result, you now have a Set with pdf-files only!

Disclaimer: This feature is quite new (for me), so I didn’t extensively test this (yet). You might run into limitations. If you do, I’d be very interested in hearing them :slight_smile:

If this is indeed fulfilling your needs I suggest we rebrand your feature request to make this process easier :wink:

2 Likes

Hi Sam

Thanks for showing me this. It is indeed what I wanted to see but in a hacky way. With this implementation, we make a set of the relation and not the item itself. Additionally, I would like to be able to change the name of the items as they are sometimes cryptic. Let’s change the name to make this workflow easier.

2 Likes

Great! Are you able to edit your OP yourself?

Hi Sam

I guess this feature request is closely related.

Maybe we can broaden the feature request to better handle media and files.

Thanks for your follow-up.

For renaming files I would indeed invite you to upvote that topic.

For your request to better handle files, the following feature request might already cover your needs:

Haven’t seen those requests before but they seem to be exactly what I want. Can you merge the requests not to have multiple ones for the same feature?

2 Likes