I need to upload photos and files

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
saleh
User
Posts: 470

I need to upload photos and files

Post 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


mobhar
User
Posts: 11712

Post 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.


saleh
User
Posts: 470

Post by saleh »

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


arbei
User
Posts: 9376

Post 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.


saleh
User
Posts: 470

Post 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".


saleh
User
Posts: 470

Post by saleh »

I knew the place Now thank you

Which is better ?


arbei
User
Posts: 9376

Post by arbei »

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


saleh
User
Posts: 470

Post 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


arbei
User
Posts: 9376

Post 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.


saleh
User
Posts: 470

Post by saleh »

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


arbei
User
Posts: 9376

Post 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


Post Reply