Listing objects works correctly for files, the href url adds the full URL but if there is a directory in that bucket it does not add the port number (im using MinIO which runs on port 9000).
index.html is the s3-bucket-listing html file
Example urls for objects (working):
http://192.168.0.10:9000/public/file.txt
http://192.168.0.10:9000/public/picture.jpg
http://192.168.0.10:9000/public/document.pdf
Example urls I'm getting for directories (not working):
http://192.168.0.10/public/index.html?prefix=directory1/
http://192.168.0.10/public/index.html?prefix=directory2/
http://192.168.0.10/public/index.html?prefix=directory3/
This is what the url for a directory should look like:
http://192.168.0.10:9000/public/index.html?prefix=directory1/
http://192.168.0.10:9000/public/index.html?prefix=directory2/
http://192.168.0.10:9000/public/index.html?prefix=directory3/
For some reason it is removing the port number from href of listed directories in the bucket.
I tried adding var BUCKET_WEBSITE_URL = 'http://192.168.0.10:9000'; but it seems to be ignoring BUCKET_WEBSITE_URL for directories, however it does work for file objects as intended.
I hope im explaining myself correctly.
Thank you
Listing objects works correctly for files, the href url adds the full URL but if there is a directory in that bucket it does not add the port number (im using MinIO which runs on port 9000).
index.html is the s3-bucket-listing html file
Example urls for objects (working):
http://192.168.0.10:9000/public/file.txt
http://192.168.0.10:9000/public/picture.jpg
http://192.168.0.10:9000/public/document.pdf
Example urls I'm getting for directories (not working):
http://192.168.0.10/public/index.html?prefix=directory1/
http://192.168.0.10/public/index.html?prefix=directory2/
http://192.168.0.10/public/index.html?prefix=directory3/
This is what the url for a directory should look like:
http://192.168.0.10:9000/public/index.html?prefix=directory1/
http://192.168.0.10:9000/public/index.html?prefix=directory2/
http://192.168.0.10:9000/public/index.html?prefix=directory3/
For some reason it is removing the port number from href of listed directories in the bucket.
I tried adding var BUCKET_WEBSITE_URL = 'http://192.168.0.10:9000'; but it seems to be ignoring BUCKET_WEBSITE_URL for directories, however it does work for file objects as intended.
I hope im explaining myself correctly.
Thank you