Answer the question
In order to leave comments, you need to log in
How can I find out the size of this file?
Good day!
The whole day I can not get through to the size of this file. I understand that, apparently, I’m not knocking correctly, so I decided to ask knowledgeable people:
There is a method that generates and returns a link to a PDF file, which, in turn, is stored on Amazon. When you click on the link, the file itself opens (does not download):
def self.get_pdf_url(manual, lesson = nil)
link = DOMAIN + "/s/#{ENV['SCREENSTEPS_LIVE_SITE_ID']}/m/" + manual + '/'
link += 'pdf'
end
= link_to model_name.get_pdf_url(some_option) do
.name= link_to_pdf_name
.size= pdf_size
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question