Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

UI allows Adding a New File without uploading
Last Post 11/24/2009 11:03 AM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jasonred
New Member
New Member
Posts:3


--
09/11/2008 5:09 PM

We have noticed on the New Item page when you select to add a new file that you can sucsefuly submit an item without uploading anything. You then get an item in the document tree with a Zero byte size and it give the error "Could not find a part of the path '...DNN\Portals\0\DMX'" when you try to download it. Is there a fix for this?

Thank You

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/11/2008 6:12 PM
Good point. I'll make a note of it.
Peter
pmarkiewicz
New Member
New Member
Posts:47


--
11/20/2009 8:31 PM

I'm getting a "Could not find a part of the path" critical error.  I suspect it is related to 0 byte files.  These were 0 byte files that were uploaded via the WebDAV interface, so I'm not sure there's a way to avoid having this happen.  My question is how should I best remove these files so they don't cause this problem?  This error occurs if I'm doing a Zip and Download whenever a directory contains 0 byte files.  Unfortunately any parent directory that attempts to zip these 0 byte files will also fail with the same error.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/24/2009 11:03 AM
Hi Patrick,

A very brute way to do it would be to run something like this in SQL:
DELETE FROM DMX_Entries
WHERE EntryType LIKE 'File%'
AND FileSize = 0

That will remove all files that are length 0. There is a small risk you might take out only a particular version of a file, but it should not lead to breakage.

General advice when doing this type of operation: back up DB first as Murphy's everywhere.

Peter
You are not authorized to post a reply.