Array of files

29 views
Skip to first unread message

szym...@gmail.com

unread,
Feb 20, 2018, 5:01:40 PM2/20/18
to Back4App
Hello, 

I am creating an Android App with some text and few pictures depend on the product. I can add a single file to a document (row), however, I would like to add at least 2 or 3. WOuld be great to add some meta-data as well. In MongoDB single document would look like:

{
    _id:ObjectId('xxxxxxx'),
    name: 'A',
    pictures: [
        { url: {http://...',
        title: 'ImageTitle'},
        { url: {http://...',
        title: 'ImageTitle'}]
    description: 'dsdsdsds'
}

Any suggestions? 

nat...@back4app.com

unread,
Feb 27, 2018, 10:56:34 AM2/27/18
to Back4App
Hi,

thanks for reaching out! 
We recommend that you use Pointers, because with this, you can use related images without lost without losing any functionality.

Could you please take a look at the guide below?

Regards,
Natália.
Reply all
Reply to author
Forward
0 new messages