ruby on rails - how do I ensure HTTP file upload (ie multipart etc) is transactional? -
How can I ensure that if I'm uploading an HTTP file (for example, in my web from v1 An application for updating the existing file says for V2) that this transaction works?
It is in this case that my web application is v1 of the file, but as part of the administration interface, I can update this file. If uploading v2 has a problem with file uploads then I want to make sure that v1 is still in place, and instead there are some corrupt v2 copies instead.
Another way to ask this question can be to tell me where to upload the server-side file upload code directly to the file, or whether (if the HTTP file upload transaction is not) There are two steps needed to be processed by putting some extra server side code in (a) upload to a temporary location and then (b) transfer it to the last place if successful, but I still point to the customer Did not work overall upload or not), and (c) to update side a database status field server.
I think this is a general question, but I can tell that Ruby is on the back and railway application in my case
thanks
Believing all that there is nothing in common with your setup in the setup.
In addition, if you can, then you should think about investing in an attachment plugin / gem that can lift some heavy load for you. I'm a big fan.
Comments
Post a Comment