BookingSync/bookingsync-api

Add attachments endpoints

Opened this issue · 7 comments

We need to add inbox attachments endpoints.

@StoneFrog @Azdaroth I've set client to send base64 encoded string for attachments file, is that the right way to handle upload of the attachments? If so we need to change inbox uploader on core to use carrierwave-base64 gem.

@JovicaSusa try uploading something on Core in dev and see if it works

@JovicaSusa doesn't remote_file_url work :P ?

@Azdaroth It worked when I've added carrierwave-base64 gem to Core and changed inbox uploader to

mount_base64_uploader :file, InboxFileUploader

@StoneFrog Not sure what to do remote_file_url? Where that comes from 😄

@JovicaSusa I think we should support both as we do now with photos. Basically you should be able to pass file as base64 encoded string or remote_file_url as external url.

@StoneFrog Ok, thanks. I'll check how photos work.