{"id":134290,"date":"2021-01-04T07:03:33","date_gmt":"2021-01-04T07:03:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dreamapi\/"},"modified":"2021-01-04T07:43:09","modified_gmt":"2021-01-04T07:43:09","slug":"dreamapi","status":"closed","type":"plugin","link":"https:\/\/tr.wordpress.org\/plugins\/dreamapi\/","author":17789469,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"5.6.17","requires":"","requires_php":"7.4","requires_plugins":"","header_name":"DreamAPI","header_author":"NoteToServices","header_description":"Upload your files to DreamHost DreamObjects instead of WordPress Media Library for faster content delivery.","assets_banners_color":"","last_updated":"2021-01-04 07:43:09","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/andbenice","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/dreamapi\/","header_author_uri":"https:\/\/notetoservices.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1193,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2449726,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2449743,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2449743,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2449743,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2449743,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2449743,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2449743,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2449743,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":2449743,"resolution":"8","location":"assets","locale":""},"screenshot-9.png":{"filename":"screenshot-9.png","revision":2449743,"resolution":"9","location":"assets","locale":""}},"screenshots":{"1":"DreamAPI.link Registration","2":"DreamAPI Credentials","3":"DreamAPI Media Library under Media -- API key required","4":"DreamAPI under Tools","5":"DreamAPI Entry Key","6":"DreamAPI Settings","7":"DreamObjects CNAME Update"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[194731,23509,24748,6655,259],"plugin_category":[50],"plugin_contributors":[182349],"plugin_business_model":[],"class_list":["post-134290","plugin","type-plugin","status-closed","hentry","plugin_tags-dreamapi","plugin_tags-dreamhost","plugin_tags-dreamobjects","plugin_tags-organize","plugin_tags-upload","plugin_category-media","plugin_contributors-notetoservices","plugin_committers-notetoservices"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dreamapi.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-1.png?rev=2449743","caption":"DreamAPI.link Registration"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-2.png?rev=2449743","caption":"DreamAPI Credentials"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-3.png?rev=2449743","caption":"DreamAPI Media Library under Media -- API key required"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-4.png?rev=2449743","caption":"DreamAPI under Tools"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-5.png?rev=2449743","caption":"DreamAPI Entry Key"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-6.png?rev=2449743","caption":"DreamAPI Settings"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-7.png?rev=2449743","caption":"DreamObjects CNAME Update"},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-8.png?rev=2449743","caption":""},{"src":"https:\/\/ps.w.org\/dreamapi\/assets\/screenshot-9.png?rev=2449743","caption":""}],"raw_content":"<!--section=description-->\n<p>Use the DreamAPI plugin to upload files to the DreamHost DreamObjects file storage zone to save space on your website.<\/p>\n\n<h3>Details<\/h3>\n\n<p>Several years ago, DreamHost came up with a great storage solution known as DreamObjects, and then also released a WordPress plugin \ncalled DreamSpeedCDN to go with it. After a year or so, they discontinued the plugin, which made DreamObjects a simple storage \nsolution instead of an actual CDN, yet it has all the capabilities of being a CDN.<\/p>\n\n<p>It is uncertain why DreamHost discontinued this plugin, but the possible reasons are that they did not have enough users \nusing DreamObjects at the time and they were not really pushing WordPress to their users. Fast forward to 2020, and DreamHost \nis hosting nearly 2 million websites, a majority of which are using WordPress. Considering that DreamHost also offers DreamPress,\na managed hosting solution specifically for WordPress websites, it only makes sense for DreamObjects to be utilized as a storage and \nCDN service.<\/p>\n\n<p>DreamHost has no plans to revive their DreamSpeed CDN plugin, and you can find a non-working archived version of it on Github. However,\nit does require some coding knowlege to get it working again. In this WordPress forum topic \n(DreamSpeed Alternative [https:\/\/wordpress.org\/support\/topic\/dreamspeed-cdn-alternative\/]), \nIpstenu (Mika Epstein) (@ipstenu) came up with a suggestion for a temporary solution by using \nIlab Media Tools (https:\/\/wordpress.org\/plugins\/ilab-media-tools\/), as DreamObjects is S3 compatible and this plugin can be setup \nto use DreamObjects. It has been working great for a long time, but there are times where the plugin can be spotty, \nand there is no way to force a file upload from the Media Library to DreamObjects with this plugin. This plugin is not specific \nto DreamObjects and can be used with a variety of different platforms.<\/p>\n\n<p>As a result of the buggy plugin, that does not solely focus on DreamObjects, and being a decade customer of DreamHost, \nwho uses DreamObjects, I decided to build a service to ensure that I could easily link any website to DreamObjects without issues, \nincluding any WordPress website, bridging that gap with an unofficial plugin that can easily connect to DreamObjects and upload files.<\/p>\n\n<p>This service and plugin were created without any confirmation from DreamHost, as they never did respond back to my support ticket, \nwhich they have now closed. I do firmly believe that there are a lot of DreamHost users that could use a plugin like this, \nso that they can fully utilize DreamHost and all of its services.<\/p>\n\n<p>This plugin requires registration of an account at DreamHost.com and DreamAPI.link.<\/p>\n\n<p>Note: Any issues that arise with this plugin or the DreamAPI.link service are not associated with DreamHost.com.<\/p>\n\n<h3>Technical Details<\/h3>\n\n<p>DreamAPI (https:\/\/dreamapi.link) by NoteToServices (https:\/\/notetoservices.com) extends the functionality of DreamObjects to \nWordPress, which serves as a file storage service, but with this plugin, allows you to turn it into a CDN.<\/p>\n\n<h3>Known Issues<\/h3>\n\n<h3>Additional Info<\/h3>\n\n<ul>\n<li><p>Through DreamObjects Media, you can select a raw URL or a [dreamimg] shortcode.<\/p><\/li>\n<li><p>The [dreamimg] shortcode has multiple built-in features including image src, alignment, title, alt, link, and target. src is the only requirement.<\/p><\/li>\n<li><p>The [dreamimg] shortcode does not require a closing tag.<\/p><\/li>\n<li><p>The [dreamimg] shortcode may include quotes if you prefer, but quotes are not required.<\/p><\/li>\n<\/ul>\n\n<p>[dreamimg] shortcode usage:<\/p>\n\n<p>[dreamimg src=https:\/\/DreamAPI.link\/DreamAPI-logo.jpg href=https:\/\/DreamAPI.link\/DreamAPI-logo.jpg link=yes|no align=left|center|right alt=\"DreamAPI Logo\" title=\"DreamAPI website\" target=_blank|_self|_top|_parent display=inline|block|contents|flex|grid|inline-block|inline-flex|inline-grid|inline-table|list-item|run-in|table|none|initial|inherit data-src=none|https:\/\/DreamAPI.link\/DreamAPI-logo.jpg]<\/p>\n\n<p>[dreamimg] shortcode details:\nsrc = url of image [required]\nhref = link to image or another url \nlink = link directly to image or not\nalign = position of image\nalt = alternative text for image\ntitle = used for a title in the link\ntarget = how you wish to open the link of the image\ndisplay = how you want your image to be displayed\ndata-src = data-src used for Javascript purposes, leave blank to capture the default src or none to remove data-src<\/p>\n\n<h3>Copyright Info<\/h3>\n\n<p>Copyright (C) 2015-2021 <a href=\"https:\/\/www.notetoservices.com\">NoteToServices<\/a><\/p>\n\n<p>This program is free software; you can redistribute it and\/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.<\/p>\n\n<p>This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.<\/p>\n\n<p>You should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA<\/p>\n\n<h3>Terms<\/h3>\n\n<p>By using this plugin and enabling DreamAPI, you agree that your website will need to make external calls from DreamAPI.link and DreamObjects.<\/p>\n\n<p>If you do not agree to these terms, please uninstall and delete this plugin.<\/p>\n\n<p>If you find this plugin useful, please give a review.<\/p>\n\n<p>DreamHost's Terms of Service: https:\/\/www.dreamhost.com\/legal\/terms-of-service\/\nDreamAPI's Terms of Service: https:\/\/DreamAPI.link\/?page=terms<\/p>\n\n<p>DreamAPI is a third-party service of DreamHost and was developed by NoteToServices under permission of DreamHost.<\/p>\n\n<p>If you have any issues with the DreamAPI plugin, please use the DreamAPI support forums on WordPress, not the DreamHost forums.<\/p>\n\n<p>You may not redistribute this plugin or alter the name in any way without permission from NoteToServices.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the DreamAPI plugin.<\/li>\n<li>Navigate to DreamHost.com and sign up for an account.<\/li>\n<li>Enable the DreamObjects storage area and create a new bucket.<\/li>\n<li>Navigate to DreamAPI.link and sign up for an account.<\/li>\n<li>Grab the key from DreamAPI.link and enter it into the settings.<\/li>\n<li>Set your upload folder and your RETURN URL and click Save Settings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Q: What does DreamAPI do?\nA: DreamAPI makes a connection to DreamObjects and allows you to upload or delete files. In addition, DreamAPI also turns DreamObjects back into a CDN from a \nstorage-only application.<\/p>\n\n<p>Q: Can I use DreamAPI without a plan? \nA: You will need an account at DreamHost and DreamAPI and you will also need to have a bucket within DreamObjects.<\/p>\n\n<p>Q: Is DreamAPI free?<br \/>\nA: DreamAPI is not free and requires registration of your API key.<\/p>\n\n<p>Q: Can I change the default DreamAPI link to a custom domain?\nA: You will need to set the DNS records of your DreamHost DreamObjects storage bucket. Visit DreamAPI.link for more details. \nAfter you have ensured this process is complete, you can set the return url in the Settings which will display a custom domain link instead of the DreamObjects link.<\/p>\n\n<p>Q: How much storage space do I have?\nA: DreamAPI.link only makes the connection between your WordPress website and DreamObjects, but you can visit DreamHost's DreamObjects page for more details here: \nhttps:\/\/www.dreamhost.com\/cloud\/storage\/<\/p>\n\n<p>Q: Will my original files be deleted after they are uploaded?\nA: Since you are not uploading directly to the Media Library, no files will ever be stored on your server longer than they need to be.<\/p>\n\n<p>Q: Will DreamAPI delete files from DreamObjects if I delete them on WordPress?\nA: Deleting files from your DreamObjects Media Library on WordPress will delete them from your DreamObjects bucket.<\/p>\n\n<p>Q: Will my files be deleted if I delete them from DreamObjects?\nA: If you delete your files directly from DreamObjects, they will no longer show up in the DreamObjects Media Library on your website.<\/p>\n\n<p>Q: Can I change the upload folder?\nA: You may change the folder to anything you want. \nNote: Changing it will not automatically move any files from the old folder to the new folder.<\/p>\n\n<p>Q: Can I upload the WordPress Media Library?\nA: Absolutely! From the DreamAPI settings screen, click on \"Export to DreamObjects Media Library\" and let DreamAPI go to work. \nDepending on the size of your library, it could take a while.<\/p>\n\n<p>If the script times out, you will need to increase numbers for: \nmax_execution_time, max_input_time, memory_limit, post_max_size, upload_max_filesize<\/p>\n\n<p>Q: Can I add a date to the folder structure?\nA: This is not currently possible.<\/p>\n\n<p>Q: I have multiple subfolders but they aren't showing.\nA: DreamAPI does not currently read recursively into directories.<\/p>\n\n<p>Q: Can I set a pre-existing folder that already has files in it on DreamObjects?\nA: Absolutely. Just set the folder and DreamAPI will load anything within the root of that folder.<\/p>\n\n<p>Q: Will DreamAPI work with Gutenberg?\nA: DreamAPI will work with Gutenberg, but not directly. In other words, you will simply insert a new block, add media, and insert from URL. Or you can paste the img shortcode into the post or page directly.<\/p>\n\n<p>Q: How do I make my images load faster?\nA: DreamObjects automatically caches files worldwide and if they are downloaded once, they tend to be cached forever.<\/p>\n\n<p>Q: I uploaded a file to DreamObjects, deleted it, and re-uploaded a file with the same filename, but still seeing the old file.\nA: Aside from storage, DreamObjects primary job is to cache things forever and make them fast. There is no way \nto clear the cache on DreamObjects. You will need to rename the file and re-upload it to see the new file.<\/p>\n\n<p>Q: Does my website need to be secure?\nA: It is highly recommended that you use a secure website and force SSL on your DreamObjects DNS. Trying to display secure images from an unsecure website or vice versa may result in odd browser behavior from the browser. However, having a non-secure website will still display images.<\/p>\n\n<p>Q: My images are not showing up for my custom domain.\nA: You should have covered at least two steps in order to link to your custom domain.\nYou will need to go to wherever you are hosting your domain and ensure the proper DNS CNAME records are set.<\/p>\n\n<p>Changes may take up to 10 minutes or more to go in effect.<\/p>\n\n<p>For more information: https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215253408-How-to-create-a-DNS-alias-for-DreamObjects-buckets<\/p>\n\n<p>Q: My images are not appearing in DreamObjects Media.\nA: Ensure the proper folder is set and there are actually files within the folder.<\/p>\n\n<p>Q: Does DreamAPI alter my images?\nA: Unlike WordPress which may scale down large images, DreamAPI does not alter your images in any way and will upload them directly to DreamObjects.\nNote: Upon importing your DreamObjects Media Library to your WordPress Media Library, WordPress native functions may scale your images.<\/p>\n\n<p>Q: Why does it take long to upload or delete files?\nA: It depends on your server connection to DreamAPI, but it may take several minutes to upload or delete multiple files. It is advisable not to upload more than 20 files at a time.<\/p>\n\n<p>Q: How do I use a secure connection with my own domain for my files?\nA: This is where the CDN aspect from DreamSpeedCDN kicks in.<\/p>\n\n<p>Follow these steps:\n1. Create a bucket called cdn.mysite.com. \n2. You will need to add your website to Cloudflare. \n3. From Cloudflare, update the CNAME record to cdn.mysite.com.objects-us-east-1.dream.io.\n4. From the menu, choose SSL\/TLS, and select FULL.<\/p>\n\n<p>Once the CNAME and DNS are resolved, then you can serve your files from cdn.mysite.com.<\/p>\n\n<p>Your bucket should be: cdn.mysite.com\nYour return URL should be: cdn.mysite.com<\/p>\n\n<p>All of your images will be returned as: https:\/\/cdn.mysite.com\/uploads\/file1.jpg<\/p>\n\n<p>Q: Does DreamAPI use any tracking?\nWe record every API call to ensure quality and debugging purposes in case something goes wrong, including the DreamAPI key, the action, the URL submitted, and the IP address of the server that the request came from.<\/p>\n\n<p>DreamAPI does not track any additional information about your website or visitors.<\/p>\n\n<p>Q: Can you explain what everything is on the Settings page?\nA: Absolutely.<\/p>\n\n<p>DreamAPI key is the API key you will need to get from DreamAPI.link which allows the plugin to work. This key creates a connection between DreamAPI, DreamObjects, and your website.<\/p>\n\n<p>Return URL is the custom domain you set. By default, it will look something like this: bucket.objects-us-east-1.dream.io<\/p>\n\n<p>DreamObjects Folder is the folder on where your files will be uploaded.<\/p>\n\n<p>Save Bandwidth will toggle whether thumbnail images are loaded in Bthe DremaObjects Media Library or instead only clickable links are served thus saving bandwidth.<\/p>\n\n<p>Update DreamAPI Settings updates the settings on the current page.<\/p>\n\n<p>Import To Media Library Media will download all files from DreamObjects Media Library into your local library.<\/p>\n\n<p>Export to DreamObjects Media Library will upload everything from the WordPress Media library to DreamObjects Media Library.<\/p>\n\n<p>Q: Are you DreamHost?\nA: We are a third-party company known as NoteToServices (https:\/\/notetoservices.com) and developed this plugin to help make better use of DreamObjects storage.<\/p>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<p>Basic functionality to connect WordPress and DreamHost via DreamAPI.<\/p>","raw_excerpt":"Upload your files to DreamObjects on DreamHost instead of WordPress Media Library.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/134290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=134290"}],"author":[{"embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/notetoservices"}],"wp:attachment":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=134290"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=134290"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=134290"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=134290"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=134290"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=134290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}