Page 1 of 1

I need to upload photos and files

Posted: Fri Apr 21, 2017 2:50 pm
by saleh

hello
I need to upload photos and zip and rar files

"upload/"

The pictures have no problem in raising

But the problem is in the files

The file name appears but does not have a link to download
I can only download from the edit page

The field in the database has its name and type:
Attachment longtext

please help


Re: I need to upload photos and files

Posted: Sat Apr 22, 2017 12:23 am
by mobhar

You need to setup the Hyperlink for the uploaded files. Please read "Hyperlink" under "Field Setup" from PHPMaker Help menu for more info and example.


Re: I need to upload photos and files

Posted: Mon Apr 24, 2017 10:09 am
by saleh

I find the file uploaded in full size inside the folder "upload/"
But the download is size = 0
please help


Re: I need to upload photos and files

Posted: Mon Apr 24, 2017 11:10 am
by arbei

If you enabled the option "Encrypt file path" in [Advanced Settings], also double check you add "zip" in "Allowed non-image file extensions".

Or you can disable the option "Encrypt file path" then generate all files and try again.


Re: I need to upload photos and files

Posted: Mon Apr 24, 2017 12:17 pm
by saleh

hello
Thank you for your reply
This method works successfully:
disable the option "Encrypt file path" .

But how I use this method did not understand where I put it : "Allowed non-image file extensions".


Re: I need to upload photos and files

Posted: Mon Apr 24, 2017 12:40 pm
by saleh

I knew the place Now thank you

Which is better ?


Re: I need to upload photos and files

Posted: Tue Apr 25, 2017 12:39 pm
by arbei

It depends on if you need to encrypt your file path or not.


Re: I need to upload photos and files

Posted: Tue Apr 25, 2017 8:53 pm
by saleh

hello
Thank you for your reply

I had a problem

When I download the file I see a blank page and Do not download the file and Show me the following link
hxxs://www.xxxxx.xx/xx/ewfile13.php?t=bx-GvB71 ... N69yM42Czg..

Note The local server works successfully
But online does not work


Re: I need to upload photos and files

Posted: Wed Apr 26, 2017 10:43 am
by arbei

Make sure uploaded all files to your server, and use F12 -> Network to see any error message returned from ewfile13.php and post it here.


Re: I need to upload photos and files

Posted: Wed Apr 26, 2017 10:50 am
by saleh

There are no messages to display
And also does not download the file


Re: I need to upload photos and files

Posted: Thu Apr 27, 2017 12:50 pm
by arbei

Enable Tools -> Debug in PHPMaker, configure your php.ini to display ALL errors, read:
http://www.php.net/manual/en/errorfunc. ... -reporting
http://www.php.net/manual/en/errorfunc. ... lay-errors