File uploads no longer work

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

2/1/2024 9:43:21 AM
Gravatar
Total Posts 2

File uploads no longer work

Hello Everyone,

I apologise if this is in a wrong section but I really need some help. I inherited a website running on an severely outdated version of mojo, I was just about to upgrade it to the latest version over the weekend but suddenly no one can upload any files using the file manager. Neither users or admins can upload anything, both file managers yield the same result. Logs and event viewer list "System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."  As far as I'm aware nothing's been changed so I'm at a complete loss here.  Having literally zero knowledge about web development I don't know where to look or what to look for. Any pointers would be hugely appreciated.

Many thanks
Madski

2/9/2024 3:36:45 AM
Gravatar
Total Posts 216
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: File uploads no longer work

Hello Madski,

I believe this issue is caused by the maximum path length in Windows, see this article for more info: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

My guess is that either your installation was moved somehow such that all the relative paths the file manager is requesting are too long, or else that the users in question have user-specific media folders setup and the combined system path + user folder path winds up being too long.

You should be able to check the request path and see how long it is to check if that is what's going on.

Hope this helps,

-Isaac

2/13/2024 7:56:05 PM
Gravatar
Total Posts 2

Re: File uploads no longer work

Thanks Isaac,

The registry key is set, and yes, the site has been moved to a new server about 6months ago but I kept the hostname and folder structure the same as on the old server, plus the uploads worked fine since the move and then suddenly just stopped. That's what's puzzling me the most - nothing has been changed yet all of a sudden the paths are supposedly too long.

I'm way over my head here, may need to pay someone to get to the bottom of it.

Regards
Madski

 

2/14/2024 2:53:27 PM
Gravatar
Total Posts 216
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: File uploads no longer work

Madski,

That is strange.  In my experience, whenever a computer tells me something is wrong but it seems like nothing has changed, it always turns out that the computer was right and something had changed - it's just often hard to figure out the what/when/why of it.

If you contact i7MEDIA and leave us your email/phone, we'll use that to privately ask for some extra info and then take a look at it for you.

Thanks,

-Isaac