Ok, I have an insanely crazy request, but it's a request
nonetheless. I have a client that wants to me to create an
application for viewing photos online. Sounds easy enough, right?
Well, here's the kicker, I developed the application using the
Paperclip plugin and provided him with a snazzy interface for
uploading/managing images from the site itself. He's bound and
determined to have a Desktop application that uploads images to the
server without needing the web interface.
I've been over this a million times with him, but he "feels more
comfortable" with a Desktop application for managing the uploads...
He is a very kind (albeit, uninformed and eccentric) client so I'd
like to make him happy. That said, how in the world should I go about
integrating a Desktop application for upload and have the rails app
"discover" the images? The current functionality is too tied to the
Paperclip plugin to simply drop it. That said, I the way I see it, I
have two options:
1) Provide an upload URL of some sort for the application to access
over HTTP and upload files directly to the app.
2) Provide a folder for FTP on the server that rails then scans and
enters into the system.
My issue is, with the second mechanism (which I'm sure he'll request
explicitly), I'm having severe trouble wrapping my head around getting
the information from a "file" entered into the application while
putting Paperclip "in-the-know" so to speak.
Any input would be much appreciated.
P.S. my apologies for the rambling nature of this post