I know this is possible using REST, but I could see a number of race condition problems that could occur from concurrent users interacting with your form simultaneously. Perhaps there's a better approach if you could elaborate on the problem you're trying to solve?
See the check-in & check-out sections:
Working with folders and files with REST
Retrieving data ...