1
Mazar
Xoops downloader class how can i use it.
  • 2009/9/11 7:28

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


i have build a module which support uploading file but i can not download the files i just gave the path of the file uploaded everything seems correct but when i click on download link it says oject not found.
if i right click on link and save link as it will download the file but it is corruped can not open then but in uploads folder i can open the file
any help will be appreciated

2
ghia
Re: Xoops downloader class how can i use it.
  • 2009/9/11 7:51

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You have to be more specific with examples in your problem description as on which type of links are used, file placement, etc.

Check a working example like MyDownloads or wfdownloads.

3
Mazar
Re: Xoops downloader class how can i use it.
  • 2009/9/11 8:43

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


how can i use XOOPS downloader class. i dont know if i am specific with the problem
i am tryng somehting like this

include_once XOOPS_ROOT_PATH."/class/downloader.php";
$mydownload = new XoopsDownloader();

$mydownload->addfile($filepath,$myfile);
$mydownload->download($myfile);

I am not understanding the use of this class to download my file

4
ghia
Re: Xoops downloader class how can i use it.
  • 2009/9/11 8:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You need also to set filetype and mimetype.
See also the zipdownloader class and its use in /modules/system/admin/tplsets/main.php

Login

Who's Online

149 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits