Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is it possible to manage files on a server with a TON smart contract?

Given a frontend that lets users upload files to a server, is there a way to manage uploaded files with a TON smart contract? For example, make the uploaded file go to a specific directory on the server based on the rules defined in the contract?


This question was imported from Telegram Chat: https://t.me/tondev/113589

Votes Newest

Answers


The answer is likely "no". Smart contracts are for on-chain logic, and the server is off-chain. The actions taking place on a smart contract will not be determined solely by the TVM.

You could have a smart contract act as an interface for the server to listen to: for example, account A communicates with smart contract B, and sends an event to delete a file of ID C on server D. But there is nothing that guarantees that file C exists, or that the server D's logic will listen to B.

1
1
Posted one year ago
Jeremy
384 × 5 Administrator
15K Views
1 Answer
one year ago
one year ago
Tags