TinyPortal

Development => Resources => Modules => Topic started by: Kike_GL on April 29, 2011, 08:43:31 PM

Title: TPdownloads module
Post by: Kike_GL on April 29, 2011, 08:43:31 PM
I have SMF 1.1.13 and TP 1.101 with TPdownloads module problems.

Create the links in the table tp_dlmanager and supposedly save the file in the real folder tp-downloads, but then does not download or see the file in that folder. If I upload with FTP to that folder and rename the file with the TPdownloads module assigned a size 0 as it does not exist.

Another strange thing is that the FTP tab see a list of some  strange numbers file name that physically I can not find anywhere, not even referenced in the database.

Appreciate any help with this, greetings, Kike_GL
Title: Re: TPdownloads module
Post by: IchBin on April 29, 2011, 11:46:18 PM
Sorry Kike_GL but I do not understand what you are asking.  I don't know what you mean be "create links".
Title: Re: TPdownloads module
Post by: Kike_GL on April 30, 2011, 12:16:16 AM
Admin > TinyPortal > TPdownloads > Upload

Next: check "Do not upload anything, just create an empty item."

Next: Send button

Now my file is not en the combo button "filename". I choose any and Send.

Next: I edit text box "Filename" and put the name of my file and Send.

Result: 0 bytes and can't download.

PD: Sorry english is not my language
Title: Re: TPdownloads module
Post by: IchBin on April 30, 2011, 12:26:37 AM
The FTP option is for files that have been uploaded with an FTP client to the tp-downloads folder. When you upload files to this folder TP will automatically read the directly and give you the option to assign the files to a download. When you create an empty download item it should show a list in the "filename" of files that are NOT assigned in the FTP page.
Title: Re: TPdownloads module
Post by: Kike_GL on April 30, 2011, 12:41:14 AM
Yes, that's my problem !

I uploaded a file with an FTP client to tp-downloads folder, but TP doesn't reacognice the file name I whote. I know that is case sensitive. The size is all time 0.

FTP page displays files that are not in the tp-downloads folder. Where TP got the strange file names ?
Title: Re: TPdownloads module
Post by: IchBin on April 30, 2011, 12:56:50 AM
So the file does not show up? When you say "it doesn't recognize", does the file not display at all?
Title: Re: TPdownloads module
Post by: Kike_GL on April 30, 2011, 01:14:52 AM
I rewrote my previous response while you answer me, sorry
Title: Re: TPdownloads module
Post by: Kike_GL on April 30, 2011, 01:26:31 AM
Error Log:
----------------------------
2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/perutorg/public_html/tp-downloads/Perut_310.zip
File: /home/perutorg/public_html/Sources/TPdlmanager.php
Line: 2645
----------------------------
Title: Re: TPdownloads module
Post by: IchBin on May 01, 2011, 02:48:15 PM
It looks like the rename does not work. I'm not sure how it's supposed to work at the moment. You get the error because it is looking for the wrong filename.
Title: Re: TPdownloads module
Post by: Kike_GL on May 04, 2011, 02:48:45 AM
Problem solved. The error was a second folder called tp-downloads. Thank you for your assistance.