GithubHelp home page GithubHelp logo

Comments (2)

Lyokone avatar Lyokone commented on July 29, 2024 1

Thanks for reporting this was now supported by the CPP SDK. I've created a PR to support it :)

from flutterfire.

ciceromsjr avatar ciceromsjr commented on July 29, 2024

I could fix it, but I really do not know if it is enough. That's why I didn't make a PR. Maybe it might help fixing it.

On this file:
packages/firebase_storage/firebase_storage/windows/firebase_storage_plugin.cpp

On method ConvertMedadataToPigeon, I added the keys for these fields.

std::string kCacheControlName = "cacheControl"; std::string kContentDispositionName = "contentDisposition"; std::string kContentEncodingName = "contentEncoding"; std::string kContentLanguageName = "contentLanguage"; std::string kContentTypeName = "contentType"; std::string kCreationTimeMillis = "creationTimeMillis"; << std::string kUpdatedTimeMillis = "updatedTimeMillis"; << std::string kCustomMetadataName = "customMetadata"; std::string kMetadataName = "metadata"; std::string kSizeName = "size"; std::string kBucketName = "bucket";

And I did this:

if (meta->creation_time() != 0) { meta_map[flutter::EncodableValue(kCreationTimeMillis)] = flutter::EncodableValue(meta->creation_time()); }

   `if (meta->updated_time() != 0) {
        meta_map[flutter::EncodableValue(kUpdatedTimeMillis)] =
                flutter::EncodableValue(meta->updated_time());
    }`

I don't understand much about C++, but by doing this, I managed to obtain this information. I saw that there are some things related to the fields in the CreateStorageMetadataFromPigeon method, but I don't know what it does.

I really wanted to help by submitting a PR, but I'm not sure if I did it correctly. Maybe this will help.

from flutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.