Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the heartbeat-control domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php on line 6121

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896

Warning: Cannot modify header information - headers already sent by (output started at /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/functions.php:6121) in /home2/hanthuy/public_html/wordpress.dalenguyen.me/wp-includes/rest-api/class-wp-rest-server.php on line 1896
{"id":249,"date":"2020-07-21T03:26:34","date_gmt":"2020-07-21T03:26:34","guid":{"rendered":"https:\/\/wordpress.dalenguyen.me\/?page_id=249"},"modified":"2021-03-27T19:11:44","modified_gmt":"2021-03-27T19:11:44","slug":"upload-files-to-cloud-storage","status":"publish","type":"page","link":"https:\/\/wordpress.dalenguyen.me\/upload-files-to-cloud-storage\/","title":{"rendered":"Upload Files to Cloud Storage"},"content":{"rendered":"

Upload files to Cloud Storage is similar to Save Data to Firestore Database<\/a>. <\/p>

First, we need to create a form with the help of Contact Form 7<\/a> or you can design your own custom form if you want.<\/p>

\/\/ This form will create a path to \"users\" collection\n\/\/ If you want to generate a random id, you can leave out the documentId\n\/\/ if you append __public to the fileType, it will save the image with full URL from cloud storage\n\n\/\/ The file will be uploaded to \"wpImages\/documentId\/timestamp+filename\" path under Storage\n\n[hidden collectionName \"users\"]\n[hidden documentId \"1\"]\n[hidden databaseType \"firestore\"]\n[hidden fileType \"imageUrl__public,imageUrl2\"]\n\nYour Name (required) [text* your-name]\n\n[file imageUrl limit:1mb filetypes:gif|png|jpg|jpeg]\n[file imageUrl2 limit:1mb filetypes:gif|png|jpg|jpeg]\n\n[submit \"Upload File\"]<\/pre>
\"\"
Files are uploaded to wpImages\/documentId<\/strong> path<\/figcaption><\/figure><\/div>
\/\/ Don't forget the html_id<\/strong> when you put the shortcode to the page\n\n[contact-form-7 id=\"248\" html_id=\"if-create-data-form\" title=\"File Uploader\"]<\/pre>
\n