Which Gem To Used For Building A Site Like Mediafire

Colin L. wrote in post #1170743:

No, your English is not bad. I think I understand what you want to
do. But since the link I provided appeared to me to cover what you
want to do I asked you to explain what in particular you are worried
might not be available.

Colin

“But since the link I provided appeared to me to cover what you want to
do” that is where you are getting me wrong paperclip documentation and
links all provided only refers to uploading but i couldn’t find anything
in there which gives me the answer for my question “suppose i uploaded a
file in a website then the website will provide me a link which says
share this link with other users so that they can download your file
too” i am just asking this. and yea m not asking for exact code or
proper article from where i can copy paste i just want a proper
direction in this.

Nugi Nugraha wrote in post #1170730:

On Mon, Mar 23, 2015 at 11:27 AM, Edward M. [email protected]
wrote:

How To Ask Questions The Smart Way

Is paperclip enough for downloading and generating download link after
file upload ?

On 24 March 2015 at 06:40, Edward M. [email protected] wrote:

links all provided only refers to uploading but i couldn’t find anything
in there which gives me the answer for my question “suppose i uploaded a
file in a website then the website will provide me a link which says
share this link with other users so that they can download your file
too” i am just asking this. and yea m not asking for exact code or
proper article from where i can copy paste i just want a proper
direction in this.

I agree the readme is not very clear on this. The url method provides
the url to the uploaded file. The section Show View assumes that the
file is an image with thumbnails, and so is using image_tag. If
instead it is a file to be downloaded you would need something like

<%= link_to “Download”, @user.avatar.url %>
though you would probably not have called it avatar of course, and it
may be attached to a model other than User.

Colin