web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Colon in uploaded file...
Power Pages
Unanswered

Colon in uploaded file name - possible bug

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

One of my portals uses blob storage for, well, file storage.  Recently I noticed some files uploaded by users were not being processed due to Flow's inability to find them in the blob container.

Problem:
User uploaded a file named:  my report 1:2:3.pdf
       File reference in dataverse:  my report 123.pdf
       Filename in blob storage:  my report 1:2:3.pdf

In Windows, a filename cannot contain a colon (:).  Somehow users are generating the random filename, then uploading them to my portal.  Dataverse is correcting the file but failing to do the same when pushing the file to the blob container. 

Yes, I can adjust my Flow to rename the blob or maybe do some JS magic on the UI side, but why is dataverse and or the file mover not renaming the file before it lands in the container?

Real example:

PowerOutage_0-1655504209887.png

 

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,453 Most Valuable Professional on at

    not sure why this is being partially renamed, but my suggestion would be to add JS to your page to validate the file name

    I have a function that might be a good start for you:

    InvalidFilenameValidationError = function (inputName, errorMessage) {
     var invalidCharacters = ['#', '%', '*', ':', '<', '>', '?', '/', '|', '\''];
     var files = $("#" + inputName)[0].files;
     //check that files has correct names
     for (var i = 0; i < files.length; i++) {
     var file = files[i];
     for (var character = 0; character < invalidCharacters.length; character++) {
     if (file.name.indexOf(invalidCharacters[character]) > -1) {
     // show error here
     return false;
     }
     }
     }
     return true;
    }; 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 53

#2
DP_Prabh Profile Picture

DP_Prabh 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard