Picking and posting multiple pics and vids using flutter - firebase

In social media apps such as Instagram you can often publish a post with multiple pics and vids. In flutter there are couple of dependencies such as image/video picker which allow you to choose a single image or a single video, and a file manager dependency which allows you to pic multiple pics but no videos. Is there a dependency where we can pick multiple pics and vids and publish them as one post?
Thanks in advance!

Here is the workflow of what you should do:
Add image_picker plugin in pubspec.yaml;
Add Requied Permissions if any;
Call ImagePicker.pick* and this will return you a file;
Display your file or perform the action you needed.

Related

How can I view the files I uploaded to firebase?

I have some projects I created on firebase and am trying to view the photos I uploaded however I can't seem to find an option in the menu that takes me to them. All I see is the amount of data being used. When I click on storage it just takes me to the page to setup storage in the app, which I already did. Can someone help with this?

Wordpress thumbnail images in Google Bucket

Recently started using Google Cloud platform bucket to store all my wordpress images. As many of you know wordpress creates many thumbnails from the original image that was uploaded.
I have been able to link the image from the google bucket to wordpress. But from time to time I update the image. I thought it would have automatically updated the thumbnails as well. But this is not the case.
Scenario - I upload main image into wordpress media library. It creates two other images plus original eg Image.jpg; Image-510x383.jpg; Image-115x85.jpg
Only the Image.jpg is visible in the Google Bucket. Should I reupload the image with a change using gsutil. The main full scale image changes on wordpress live site but the thumbnails remain the old versions.
How do you find were these thumbnailed images are in Google bucket so I can resync them easily as well.
Thanks for any assistance.
Check out the WP-Stateless plugin - it's free. https://wordpress.org/plugins/wp-stateless/
It will manage the process of uploading your images and other files (PDFs, MP3s, etc) to Google Cloud Storage, including all the thumbnails WordPress generates. It supports several modes, including a mode that will delete the local file since it is no longer needed.

Bulk import images into Firebase Storage and add download link to Firebase Database node

I have about 1,000 image assets which I want to add to Firebase Storage (these assets are like product images/product variation images for a product page).
By adding the corresponding download image link into the appropriate node within Firebase Database, users are able to retrieve the image on their app.
I can manually go into Firebase Storage -> image path -> image and copy the download link, them add it to the Firebase Database node. However doing this over 1,000+ assets is not feasible. Does anyone know how I can achieve this programmatically?
so after much research. best solution was to get storage somewhere else (i.e. Amazon S3), store there, and upload links to fb in proper node.

Site wise custom evaluator in alfresco

I am facing some problems to create,
Site wise evaluator to show or hide create menu option in alfresco.
In below Attached image i want to show create market option for one site and create project option for other site.
can anyone help me regarding this, if possible please provide sample custom evaluator code.
i am using Alfresco 5.0.d version
Thanks in Advance.
This blog post describes how to to the site evaluator for updating Alfresco Share configuration. Judging from your screenshot you are already able to create and add multi-select actions for the Document Library. You just need to place your configuration within extension modules as described in the blog post.

Console PHP app posting to timelines

Objective
We're developing a PHP console app that will be a running as a daemon using the PEAR System_Daemon class. The script is ideally a timed loop, that executes indefinitely until terminated.
What this loop does is query a database of players of our FB game on timed intervals, and then make posts using certain criteria to their Facebook walls/timelines.
Our app will be hosted on our Facebook page, which will also contain some albums, photos and videos that we are using to feature on these posts.
Posting on Walls/Timelines
My question is, whether we would be able to use the Facebook PHP SDK to, from within our console application, running as a service, share these albums from our console app, as posts on the users timeline, without having need for confirmation from the FB user in any way, providing we have acquired the appropriate extended permissions of course.
Appearance Sharing vs Uploading
Will the appearance for sharing an album, or video appear the same, on the users timeline as if they posted it themselves, or will the post simply appear as a thumbnail with text next to it.
I've noticed that Facebook nowadays posts photos in a neat collage with more than one thumbnail, and this is the effect that we want to achieve. Also, if not mistaken, I believe that videos added to your wall post also shows inline, as a nice large video, instead as a thumbnail.
Would we rather have to upload these images to a Facebook users account, and if so, is it possible to create new Albums on a users FB account, using the PHP SDK, and the required extended permissions granted? Or can we achieve the same look and feel by simply sharing?
Hosting media externally
Can we add photo's to users profiles, hosted externally perhaps, that will allow the PHP script to post them to an album on their account without needing to upload?
We are trying to avoid uploads, as this will have a performance impact on the server side application.
Providing you request the correct permissions, you can upload photos to the user's account using the Graph API quite easily. To post multiple photos you will have to make multiple API calls. If you post to the wall, the photos will be added to the "Wall Photos" album.
The Graph API does allow you to create albums on the user's behalf, and lets you upload photos straight to the album too. This will create photo stories on the wall like the image you posted in your question.
What you can do, however, is host the files externally. Facebook will always load the images from their server so you have to upload them to facebook. If you want to host the photos externally, you must post the images to the user's wall / timeline as links, but these won't appear under the user's Photos or under Albums.
Hope this answers all your questions. Documentation for uploading photos and creating albums can be found on the Facebook developer website.

Resources