Page 1 of 1
Attachement URL
Posted: Mon Sep 12, 2022 5:59 am
by aspsteve
I have an internal project and an external ASP.NET Maker projects.
I would like to be able to access the attachments uploaded on the customer url from the internal URL
For example
The link created from the external view is
http://external.mydomain.com/api/juploa ... ken=xxxxxx
However, when we try to select the same attachment from the internal website, it fails because it is pointing to
http://internal.mydomain.com/api/juploa ... ken=xxxxxx
This is because the external site is point to the sub domain external while the internal site is pointing to the sub domain internal.
Is there a way to substitute the sub domain called by the internal project when the attachment link is selected.
Otherwise, I am open to any other suggestion to enable the attachments upload to the table from the external site to be accessible from the same table from the internal site.
Thank you,
Steve
Re: Attachement URL
Posted: Mon Sep 12, 2022 8:19 am
by MichaelG
You should point the upload folder from both sites to the same folder so they are accessible from both sites.
Re: Attachement URL
Posted: Mon Sep 12, 2022 2:43 pm
by aspsteve
Thank you for your response but it still does not answer my question
As you can see below, the two sites are on different URLs, so how do I point them to the same folder.
http://external.mydomain.com/api/juploa ... ken=xxxxxx
http://internal.mydomain.com/api/juploa ... ken=xxxxxx
The upload file setting is relative to the domain of each project
wwwroot\uploads\.
Am I able to enter a full URL like
http://internal.mydomain.com/uploads as the setting both projects
Otherwise, is it possible for me to load two separate ASP.Net maker projects in same folder without creating issues?
Thank you,
Steve
Re: Attachement URL
Posted: Tue Sep 13, 2022 8:18 am
by MichaelG
You should be able to define IIS Virtual Directory for both sites to point to the same physical folder.
Re: Attachement URL
Posted: Sat Sep 17, 2022 11:30 pm
by aspsteve
I get the error message below
Cannot create folder: http://subdomain.domain.net/AttachmentUploads/temp__3b984fde-408b-e7b9-46ed-3ea8c4078e88/TableName/x_FieldName/
/TableNameAdd
Re: Attachement URL
Posted: Sun Sep 18, 2022 5:58 am
by darkdragon
the external domain should be set-up as a reverse proxy on IIS
https://learn.microsoft.com/en-us/iis/e ... st-routing