What is the potential issue with using absolute URLs in a PHP file upload script?

Using absolute URLs in a PHP file upload script can lead to potential security vulnerabilities, as it exposes the full server path to the public. This information can be exploited by malicious users to gain unauthorized access to sensitive files on the server. To solve this issue, it is recommended to use relative paths instead of absolute URLs in the file upload script.

// Incorrect usage of absolute URL in file upload script
$uploadPath = 'http://example.com/uploads/';

// Corrected usage of relative path in file upload script
$uploadPath = 'uploads/';