Disable Force File Download

General discussions about WebYep
TeamSDA
Posts: 5
Joined: Tue Jul 17, 2012 6:40 am

Disable Force File Download

Postby TeamSDA » Tue Jul 17, 2012 6:47 am

Hi WebYep Support,

After playing with WebYep I have one need that may be possible but need the advice of someone more experienced than myself.

I see that it is quite simple to set up an upload method. After reading the owners manual documentation it appears some thoughtful work has gone into forcing uploaded files to only download. Would it be possible to disable this feature so we could upload MP3 or PDF files and when a visiter to the website clicks the file link the browser would play back the MP3 on the site using its native method or view the PDF using its specified viewer? Would still like to have the force download option for the file as well. We want to use WebYep on several sites that require a way to do this.


Would value your input.

Regards, Dave

TeamSDA
Posts: 5
Joined: Tue Jul 17, 2012 6:40 am

Re: Disable Force File Download

Postby TeamSDA » Tue Jul 17, 2012 10:21 pm

Anybody?

Eelco
Rank 1
Rank 1
Posts: 25
Joined: Sun Sep 18, 2011 1:50 pm

Re: Disable Force File Download

Postby Eelco » Mon Feb 18, 2013 2:52 pm

In the webyep-system folder is a file "download.php"
Go to line 59:

Code: Select all

header("Content-Disposition: attachment; filename=$sOrgFilename");

and change this to:

Code: Select all

header("Content-Disposition: inline; filename=$sOrgFilename");

I didn't check if you could upload files after this change, so be careful!

Babblu
Posts: 2
Joined: Fri Mar 20, 2015 9:48 am

Re: Disable Force File Download

Postby Babblu » Fri Mar 20, 2015 9:51 am

My webhost doesn't seem to understand what I'm talking about, so they are no help unfortunately.

Babblu
Posts: 2
Joined: Fri Mar 20, 2015 9:48 am

Re: Disable Force File Download

Postby Babblu » Fri Mar 20, 2015 9:52 am

My webhost doesn't seem to understand what I'm talking about, so they are no help unfortunately.








__________________
We are the leading the world in providing best test-king pmp certification dumps prep solutions. Our incredible offers for and ielts exam gedare accessible at reasonable prices; our Florida National University is very rare in IT world.


Return to “WebYep (english)”

Who is online

Users browsing this forum: No registered users and 3 guests