Remote file storage using File Column plugin
Many times I came across a need to fetch remote data (video files/images) and store them on file system. Searching for a way, I came up with this approach.
The example is about a Video class with a video_file ‘file_column’. To fetch and store a remote file instead of getting it as a post parameter, we need to do some code workaround. The example below demonstrates one approach.
Usage:
My model looks as simple as this:
