Sunday, October 4, 2015

Hosting for your files instead of Google Drive (Google Storage)

A lot of not only Google Apps Script developers and users have used Google Drive feature to host any file as webhosting. It was useful for CSS files, images, JavaScript libraries, which can be used in code. Deployment was very easy - you have just copied files into specific folder and change sharing options.

Google recently announced, that hosting feature will be deprecated (more information here). Users have, according to deprecation policy, one year to find out a new place where to store files.

I was thinking about several options, so I would like to bring some alternatives.

The first one is Google Storage, which is a part of Google Cloud platform



Google Storage allows you to host any file with advanced possibilities like control who can read/write, monitor of traffic etc.

The main advantage is connection with App Script. Every Apps Script project has also Cloud project in Developers console (http://console.developers.google.com)

From Google Apps Script editor choose Resources --> Advanced Google services



In the new window, click at link "These services must also be enabled in the Google Developers Console."

In Developer console,  select Storage - Cloud storage. If you open console for the first time, you have to click button Enable billing (In this section you will fill in credentials like your name or number of credit card)


Now it is time to Create a bucket. Have you ever heard about it? The bucket is virtual space, where your objects (files) are stored. You can have serveral buckets for one Cloud project


Select name of the bucket. Important - this name must be unique in all Google Cloud Storage platform



Now you can create a new folder inside the bucket and upload files - by clicking button or drag'n'drop like in Google Drives. It is similar, isn't it ?


The last thing is publish on the web by click on checkbox


The final URI will like:

https://storage.googleapis.com/BUCKET/FOLDER/load.gif
Now you can insert your file in your Apps Script HTMLService code or send link to someone else.


Google Storage is a paid service, but the price is low and according to using of service (=cloud).There are three main questions for you
  1. How much data do you need to store ? (1GB per month = $0.026)
  2. How many requests do you do? (10 000 requests for $0.01)
  3. What is total traffic through your bucket ( 1GB of traffic in EMEA/AMERICA= $0.12)

So if you are planning to host 10 MB ($0.01) with total loading 100 000x ($0.01) and traffic 1GB ($0.12), you will finally get receipt $0.14 for month!

Google prepared online tool to get information about price: https://cloud.google.com/products/calculator/

Conclusion
I am just starting use this way to host files, but I have already recognize "best pattern". Its looks like, that is better to create one main project in Developer Console, which wont be connected to any GAS  project. Then for every GAS project create a new bucket.. 



Are you interested in this topic? Follow me on Twitter or subscribe RSS

75 comments:

  1. J'ai commandé une montre Rolex Replica ici. La montre rolex que j'ai reçue était une maçonnerie parfaite et éblouissante. Très satisfait de l'achat.
    fausses rolex montres
    copier des montres rolex

    ReplyDelete
  2. Lever een verscheidenheid aan replica-horloges, waaronder Breitling, Omega, Cartier, Tag Heuer, Associated Press en andere luxe replica-horloges.Replica watchesReplica watches

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. I would point out that we website visitors actually are unequivocally lucky to exist in a useful website with so many wonderful people with very helpful concepts. hospedaje web revendedor

    ReplyDelete
  5. I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. Learn more

    ReplyDelete
  6. This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform! hosting chile

    ReplyDelete
  7. Thanks a lot for sharing us about this update. Hope you will not get tired on making posts as informative as this. clicca qui

    ReplyDelete
  8. The first phase the preparation should, theoretically, be uninfluenced by the intended intensity and duration of the sound which is subsequently produced. In fact, however, so quickly are the three phases accomplished that the pianist rarely has capacity to think, in performance, of each phase separately. hostgator coupon 1 cent

    ReplyDelete
  9. Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. visit website

    ReplyDelete
  10. Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. https://privacyonline.com.br

    ReplyDelete
  11. you can always buy cheap foods on any supermarket these days because food production is mechanized already,. Domain Registration

    ReplyDelete
  12. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. www.lemigliorivpn.com

    ReplyDelete
  13. I like this site very much, Its a really nice situation to read and get info . web designer in islamabad

    ReplyDelete
  14. Thanks for this post. I definitely agree with what you are saying. I have been talking about this subject a lot lately with my brother so hopefully this will get him to see my point of view. certificado ssl

    ReplyDelete
  15. Pretty part of content. I just stumbled upon your weblog and in accession capital to assert that I get actually loved account your weblog posts. Any way I’ll be subscribing on your feeds or even I success you access constantly fast. Web developer service

    ReplyDelete
  16. realy thanks for starting this up. this website is something that’s wanted on the web, somebody with a little bit originality
    SEO Expert in Multan

    ReplyDelete
  17. Advantageously, typically the submit is really the very best about this laudable theme. To be sure with all your a conclusion and will thirstily await the following revisions. Really stating cheers won’t only end up being suitable, to your good readability within your creating. I may at once seize a person’s rss to sleep in abreast of virtually any upgrades. Fine job and much success within your organization business! Web Server Security Testing

    ReplyDelete
  18. Wonderful beat ! I would like to apprentice whilst you amend your web site, how can i subscribe for a blog website? The account helped me a applicable deal. I had been tiny bit acquainted of this your broadcast provided shiny transparent idea. Bluehost Coupon Code:Get Upto 80% Off +FREE Domain+FREE SSL

    ReplyDelete
  19. VPS hosting or Virtual Private Server hosting refers to a virtual machine for use exclusively by an individual customer of the service.wordpress

    ReplyDelete
  20. exact replica watches, combining elegant style and cutting-edge technology, a variety of styles of replica omega speedmaster watches, the pointer walks between your exclusive taste style.

    ReplyDelete
  21. Some really marvellous work on behalf of the owner of this internet site , perfectly great content . web design help

    ReplyDelete
  22. If you have time, search for comments by users of the provider on internet forums or elsewhere online. vps hosting Michigan

    ReplyDelete
  23. The the next time I read a weblog, I really hope which it doesnt disappoint me approximately this. Come on, man, It was my solution to read, but I actually thought youd have something fascinating to mention. All I hear is actually a handful of whining about something you could fix when you werent too busy interested in attention. Hosting

    ReplyDelete
  24. On the off chance that you have only a landing page or a little site about your interests, go for a free web hosting without questions. Be that as it may, before picking a specific hosting you should:
    High Performance Laravel Hosting

    ReplyDelete
  25. I am looking for and I love to post a comment that "The content of your post is awesome" Great work https://www.lesmeilleursvpn.com

    ReplyDelete
  26. This was really an interesting topic and I kinda agree with what you have mentioned here! Online Google Reviews Supplier

    ReplyDelete
  27. Really impressive post. I read it whole and going to share it with my social circules. I enjoyed your article and planning to rewrite it on my own blog. cpanel hosting

    ReplyDelete
  28. This website and I conceive this internet site is really informative ! geniusupdates

    ReplyDelete
  29. The company was launched in 1996 and has remained a very good and reliable web hosting service provider for developers and entrepreneurs ever since.minecraft server hosting

    ReplyDelete
  30. Reseller web hosting is a popular, low-cost solution to starting your own web hosting business. There are two types of reseller hosting, private-label and a reseller of services.click here

    ReplyDelete
  31. I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. Klik hier

    ReplyDelete
  32. Shared web hosting is the most popular form of hosting. Shared hosting is a portion of disk space and bandwidth provided to you by the web hosting company on a high-powered server. https://www.techpally.com/the-quality-of-web-hosting-company/

    ReplyDelete
  33. I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. bezoek website

    ReplyDelete
  34. There are some interesting points over time in this posting but I don’t determine if I see these people center to heart. There is certainly some validity but I will take hold opinion until I look into it further. Good post , thanks and that we want a lot more! Put into FeedBurner also web development

    ReplyDelete
  35. Furthermore, I suggest it. While it's name establishes that the vast majority of the employments are in web advancement, there are other not all that specialized occupations as article composing, information section, information accumulation (research) and others. Webdesign

    ReplyDelete
  36. Bloghopping is really my forte and i like to visit blogs,     hosting en méxico

    ReplyDelete
  37. There are many different types of web hosting offers, but the main three are shared, reseller, and dedicated. Each type of hosting is for a different purpose.
    http://www.clickblue.com.au/aussie-hosting

    ReplyDelete
  38. Hi Author
    Thank You for Sharing Valuable information to us
    Keep it and Grow Big TechRemark.org

    ReplyDelete
  39. You have chosen an impossible idea and made it possible for the common person to see and believe. Keep up the good work, and I look forward to much more from your mind and hand. wordpress security plugin

    ReplyDelete
  40. thank you for sharing valuable information about google cloud platform
    here you can also read about latest technology updates

    ReplyDelete
  41. I would like to say that this blog really convinced me to do it! Thanks, very good post. seo website

    ReplyDelete
  42. Thank you for sharing useful information with this article.
    you can also read about Latest Technology, Internet, New Gadgets, Useful Softwares, Mobile Apps by visiting HexaFox.com

    VIP League Alternatives

    ReplyDelete
  43. Duplicity is a nice movie,i like the story and also the actors. Premium Domains

    ReplyDelete
  44. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. Maine web hosting

    ReplyDelete
  45. Wonderful article, Which you have shared about the web design. Your article is very important and I really enjoyed reading it. If anyone looking to web designing, then visit website design Charlotte NC

    ReplyDelete
  46. An ever increasing number of individuals today choose to engage with an online business, because of the way that having a business worked through the web offers a great deal of focal points over doing it the customary way.web designer nuneaton

    ReplyDelete
  47. This comment has been removed by the author.

    ReplyDelete
  48. Thank you for posting this informative article about hosting for your files instead of Google drive. i like the way of your explanation and its easy to understand with simple words. i share this article with my friend.thanks again for providing such useful artilce. for find best search tempest alternative click on the link.

    ReplyDelete
  49. Nice blog, thank you so much for sharing such an amazing blog. Get the best Website Designing Services by our expert of OGEN Infosystem in Delhi, India.
    Web Design Company in Delhi

    ReplyDelete
  50. Pink. I think clients would love this.

    ReplyDelete
  51. Mission accomplished. It's fabulous :-)

    ReplyDelete

  52. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    webhosting

    ReplyDelete
  53. Appslure is Best app development company in mumbai and you can get website development service at a very affordable price.
    App development company in mumbai

    ReplyDelete
  54. While this isn't an issue for most web servers that have been met with one IP, it is just a worry for multi-homing. fatalityservers

    ReplyDelete
  55. Hey, I am so thrilled I found your blog, I am here now and could just like to say thank for a tremendous post and all round interesting website. Please do keep up the great work. I cannot be without visiting your blog again and again. start a business make money online

    ReplyDelete
  56. There are so many alternatives to Google Drive...

    ReplyDelete
  57. I would like to thank you for the efforts you have made in writing this post. Thanks for posting Really Such Things. I should recommend your site to my friends. If you are interested for CRM Software visit here:- CRM Software in Mumbai | CRM Software In Pune | CRM Software in Ahmedabad | Order Management Software in Mumbai | Field Management Software in Mumbai

    ReplyDelete
  58. I am sure you see the trend here... Commercial Mortgage Financing can be used in practically any industry for any kind of commercial property. Speak with your Business Finance Broker when you are ready to invest in a Commercial Real estate opportunity. www.financetypes.us

    Make use of a travel agent that provides travel deals for handicapped travelers. Booking plane tickets and rooms in hotels with journey agents that provide travel methods to disabled individuals is advantageous in many ways. They make sure they book for his or her disabled customers airlines as well as hotels which are disabled pleasant. They make an effort to offer providers and suggestions which will ensure their own clients journey comfortably. www.bestadventuretravel.us

    ReplyDelete
  59. One of the biggest competitions of today is staying fit. It seems like people nowadays want to lose weight instantly as if there is no tomorrow or it is as if it is a passport for the general population. Losing weight and staying fit is never easy. www.healthandworkoutplan.com

    The laws of nature are just as they treat every specie (and not only man) with equality. In a jungle, every specie gets its due share of food, air and water which enable them to live a dignified life without being dependent on any other creation. Nature makes no distinction between one specie, and the other as all species are the children of the same God. www.lawinformation.us

    ReplyDelete
  60. I am certain you begin to see the trend right here... Commercial Home loan Financing may be used in virtually any business for any type of commercial home. Speak together with your Business Finance Broker when you're ready to purchase a Commercial Property opportunity. www.mybusinessplan.us

    You will see all styles and models of fashion blogs as being the internet is stuffed with them. It can take a look at the advantages of wearing lean jeans through boyfriend bluejeans or the best way pink takes the destination of dark colored plus many of the extras. Just like you go internet, you receives your fill of your latest popular trends as a result of fashion blogs. www.stylesbeautytips.com

    ReplyDelete
  61. Real estate shareholders live in addition to die by means of their chance to add importance. With not any added importance, there usually are no gains. This applies with almost any business, but what makes real estate a really great business as well as a great investment decision, is the volume of ways you can contribute value and benefit from big gains. www.realestatevalley.us

    Health fitness tips also recommend that vices should be stopped. Smoking predisposes one to vascular conditions such as arteriosclerosis and heart diseases. Alcohol consumption need not be eliminated but should be limited to 30 jiggers a day only. Alcohol still has health benefits such as vasodilation. These are just some of what Health fitness tips recommend www.healthyactivities.us

    ReplyDelete
  62. Insurance can be synonymous to a lot people expressing risks involving losses expected coming from a supposed car accident. Here, the price of your losses are going to be borne by the many insurers. www.insuranceguider.us

    Discomfort heard this argument intended for spending far more now with quality just to save money in the future. But why not consider the impression your purchase has on the earth, shouldn't shopping ethically participate in the talk too? www.servicesexpert.us

    ReplyDelete
  63. Health fitness ideas also suggest that vices ought to be stopped. Smoking predisposes someone to vascular conditions for example arteriosclerosis as well as heart illnesses. Alcohol consumption do not need to be removed but ought to be limited in order to 30 jiggers each day only. Alcohol nevertheless has many benefits such because vasodilation. These are are just some of what Health fitness ideas recommend www.healthimprove.us

    Traveling, for individuals with disabilities, is extremely hectic, particularly when they get to the airport terminal. They face the process of obtaining proper info and instructions. This is actually further aggravated through the huge number of individuals traveling as well as long lists. In international airports, there tend to be attendants which are supposed for carrying on the needs of these travelling along with disabilities. www.safetravelguide.us

    ReplyDelete
  64. I know you start to see the trend the following... Commercial Mortgage loan Financing can be utilized in almost any market for almost any commercial house. Speak along with your Business Finance Broker if you are ready to buy a Commercial Real-estate opportunity. www.financialgrow.us

    You will find all forms and shapes of fashion blogs as the internet is full of them. It can talk about the main benefit of wearing lanky jeans over boyfriend jeans or how pink takes the place of black plus all the extras. As you go online, you will get your fill of the latest in fashion trends via fashion blogs. www.newsvillage.us

    ReplyDelete