Forum Discussion
TheTomas
Aug 01, 2024Copper Contributor
ASPX extension is getting mangled
Hello All, We have a document library that contains some ASPX files. In the past we have been able to upload these files normally and when opened they provide the expected functionality. How...
JaredMatfess
Aug 01, 2024Iron Contributor
Hi Tomas,
Could you please share a screenshot of an example? What happens when you try to rename the file from within the file properties in the Document Library?
Best regards,
-Jared
Could you please share a screenshot of an example? What happens when you try to rename the file from within the file properties in the Document Library?
Best regards,
-Jared
TheTomas
Aug 02, 2024Copper Contributor
JaredMatfess Here are some screen shots.
The file is an ASPX file on my workstation. Once it's uploaded, the link to the file looks like image 1. It has a query URL appended (may not be relevant?).
If I open the Rename dialog box (Image 2), the URL parameter is not present. Saving any change appends a query parameter.
When I click on the filename, rather than open the ASPX file, the link opens "download.aspx?UniqueId=<long URL id text>"
In the same library in another folder, the name does not include the query parameter and when clicking the file link, the system opens the ASPX file normally.
Where is the QueryParameter coming from?
Thanks,
-tomas
- JaredMatfessAug 05, 2024Iron ContributorSo the d=[value] parameter is something I would expect to see if you're sharing the URL. It's providing instructions to open the link (technically the file) in the browser. Otherwise, a behavior could attempt to download the file.
If you do just "Copy Link" vs "Share" I wonder if that will provide you with the URL without the additional query parameter.
n the sharing URL will enable us to open the document in Office Online in a browser.- TheTomasAug 05, 2024Copper ContributorJared,
Thanks for the response.
We have many folders with a similar set of files that behave differently. I'm trying to understand why this new folder is acting differently
In the other folders, we have several files that create a training session. The ASPX file runs the training session.
In the other folders, when the ASPX file is uploaded, the ASPX extension remains and the file is named "story.aspx". When clicked, the server (not the browser) executes the ASPX file and runs the movie, kind of like an applet on a website.
In this new folder, the file (story.aspx) is uploaded normally, but the URL for the uploaded file is automatically changed to include the "d=xxxxx" queryParam. This is forcing a download to the browser, which is not the desired behavior. We need the server to serve up the ASPX page like a web page on a website.
Something has changed in the months since our last update to force the "d=" query param and I can't seem to upload the file and NOT append that parameter.
-tomas