Attachement URL

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
aspsteve
User
Posts: 52

Attachement URL

Post 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


MichaelG
User
Posts: 1095

Post by MichaelG »

You should point the upload folder from both sites to the same folder so they are accessible from both sites.


aspsteve
User
Posts: 52

Post 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


MichaelG
User
Posts: 1095

Post by MichaelG »

You should be able to define IIS Virtual Directory for both sites to point to the same physical folder.


aspsteve
User
Posts: 52

Post 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


darkdragon
User
Posts: 148

Post 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


Post Reply