Hi,I’m testing PHPMaker 2021.0.8 publishing a list of invoices (date, file name, description, amount). I created a new project (not a imported one) in v2021 and followed the file upload to folder tutorial but file name field is not shown (blank space) nor the hyperlink to the file itself.If I change the field property to text box.. is listed without problems.
I think I followed installation requirements (composer is working, packages downloaded, etc.), PHP 7.4, plesk server, etc.Any suggestion? Thank you!Jaime
What is the field name? Is it file name (contains space), or filename (not contains space) ? If it contains space, try to remove the space from the field name, re-synchronized again your project to the latest database schema, re-generate ALL the script files, and try again.
I add: file submission works: if I add a record, the file is correctly uploaded to the server, the file name is stored in the field… but in the list view “a big” blank is shown instead the file name and the hyperlink to the file.If I edit the record, the file is shown correctly (even the pdf preview, that it’s the case) and I change the file.I set debug mode and everything it’s ok.Strange…Jaime
Press > F12 > from your browser, and see whether any Javascript error
message from > Console > section.
Hi,Yes, there ares some Javascript errors:Failed to load resource: the server responded with a status of 401 ()
DxNFY41yzP04fA7qtVhXO8bbB3FJYLYxor4y1dr53GYvRH7BiLqJkkGk6AAkFqqUiPWfzZ6E4QLKPWMeg38SUdXwk2kKXRMoJZUnYyvcJrb-GEvW4x6KZQ…:1 Failed to load resource: the server responded with a status of 401 ()
EM909DT-ZJT0t2KCyNpKDthfo7Os2KkLsRa-8IQ5TRaHto7Hnl3HV4fPwKdeWyUshOZlIUWq1ZosR418rxBv8FgGRrJXkN2k38vprSVTIP7arLP1oApSmA…:1 Failed to load resource: the server responded with a status of 401 ()
KS53RFIVEYZ0UlTxZfe6b2-tiZEQYMX2SNHa5OPQViJX7ZbHj19T_pQlN_4VY4EzMpkYM2m6CYNH8CMALsU723as7koj0XuF2CGnyPjcBy8CDwPYXEpLTBTeOFlxul1Jfn5yfLm8ApZ2hBea:1 Failed to load resource: the server responded with a status of 401 ()
zvWx09giLTSeAix8dd-8Gyd-eWZme_HrUuLSz6e0BY-Dzo1Dt5Dn3Ju3lYbdAOkX1Rl_7pBdCRccMd2fOU5amz89gDWU5XyU7wCKgsjbgnI2zg_PIV6jmQ…:1 Failed to load resource: the server responded with a status of 401 ()Jaime
The 401 Unauthorized Error is an HTTP response status code indicating that the request sent by the client could not be authenticated. A 401 Unauthorized Error indicates that the requested resource is restricted and requires authentication, but the client failed to provide any such authentication.This might occur in one of a handful of possible scenarios:
The client sent its authentication credentials to the server, but the server has rejected the credentials for some reason.
The client failed to provide any authentication credentials within the request.
The client is banned for some reason. Some applications use 401 Unauthorized Errors to restrict access requests from specific IP addresses, so if authentication is not the issue, a server-side ban could be the problem.
As you can see from the URL, the URL to the API uses different API actions (“api/file” vs. “api/jupload”) in List/View pages and Add/Edit pages, they work differently. You need to focus on why you get 401 (no permission) in the List/View page. If you use User Level Security, make sure the user has List/View permission to the table.
Thank you for the information on API: as you say I have to focus on the list/view page.Security is well configured by user ID: that’s what I usually set in my projects.I’ll keep looking for the solution. Thank youJaime