Technical support This forum is closed.
Version 1.x > Technical support > Cannot upload file suddenly View modes: 
User avatar
Member
Member
cpaul - 8/11/2005 5:55:33 PM
   
Cannot upload file suddenly
It's been a while since I tried to upload a file (for a CMS.File document), and now it's not working.

I've set the application very open in the IIS Admin, granting it Write privileges, and giving both the IUSR_xxxx and ASPNET accounts full control of the directory, but it still silently fails to write the file into the directory. The entry in the DB gets created successfully, except the file size and type are blank, and of course you cannot get the file back out since it is never written.

Any ideas?

User avatar
Guest
admin - 8/15/2005 10:38:14 PM
   
Re: Cannot upload file suddenly
Hi Chip,

could you please write me which operating system you are experiencing this error on?

Thank you.

Best Regards,

User avatar
Member
Member
cpaul - 8/16/2005 5:02:30 PM
   
Re: Cannot upload file suddenly
This is my Windows XP development machine.

User avatar
Guest
admin - 8/18/2005 11:41:39 AM
   
Re: Cannot upload file suddenly
Hi Chip,

could you please try to go to the /cmsdesk/logon.aspx page and see if it displays any error? This page contains some troubleshooting code that tries to write a file into the disk and if it fails, it displays the details.

Does it display any error now?

Thank you.

Best Regards,

User avatar
Member
Member
cpaul - 8/19/2005 8:02:00 PM
   
Re: Cannot upload file suddenly
No error is displayed when the page loads, nor when I log in.

User avatar
Guest
admin - 8/22/2005 5:17:00 PM
   
Re: Cannot upload file suddenly
Well, it seams that the permissions are correct - otherwise, you would get an error message on the page with logon dialog.

Does it happen for all types of files or only for some specific file?
Did you try to upload the file from another computer/another browser (Mozilla, FireFox, Netscape)?

Thank you.

Best Regards,

User avatar
Member
Member
cpaul - 9/12/2005 5:30:46 PM
   
Re: Cannot upload file suddenly
This happens with both Mozilla and Internet Explorer across all file types.

It's also happening on our new staging server. I've set Write application permissions, and given both the IUSR and ASPNET accounts write + modify permissions to the entire app. Is there anything else I can check?

User avatar
Member
Member
cpaul - 9/12/2005 5:32:08 PM
   
Re: Cannot upload file suddenly
BTW, I have Store files in database set to false, and my Files dir set to /cmsdesk/Files. My CMSDesk app is configured as a separate application deployed under the main website.

User avatar
Member
Member
cpaul - 9/12/2005 6:22:51 PM
   
Re: Cannot upload file suddenly
I guess I'm also confused as to exactly where a file upload is supposed to place the file. Looking at the cmsdesk code, it looks like it wants to write it to /cmsdesk/files. However if I manually place the file at the appropriate place in the content tree, then it locates it fine, suggesting it should be writing it to there.

Where are file uploads supposed to be stored?

I'm using
Version: 1.6.1925
Edition: Professional

User avatar
Guest
admin - 9/13/2005 11:40:36 AM
   
Re: Cannot upload file suddenly
Hi Chip,

the CMSFilesFolder web.config parameter specifies the virtual path to the folder where files should be placed. However, this folder contains only files that are placed in the "/files" folder in the Kentico CMS tree document structure.

The other files are stored in the folder structure that starts from the application root (CMSWebApplicationVirtualPath web.config parameter).

If you specify the CMSAttachmentsFolder web.config parameter, all files outside the "/files" folder are stored in the folder structure that starts at the specified path (either virtual or physical).

Your current version is 1.6 (there are upgrades to 1.6b and 1.7 available as well).

We will prepare a simple web application to test the upload on your machine and send it to you.

Best Regards,