开发者

Uploading image files to Django site on Linode

I am setting up a Django site on Linode with Debian 6 and cannot get the image uploads to work. I have the upload target set in the model and my settings.py file is configured and can save the model with the file selected with no problem but the image never get written to the directory on my server. I think it may 开发者_如何学编程be a problem with permissions but cannot figure out how to fix it or find any solutions. Any help would be appreciated.


I didn't have the proper enctype set in my form element to handle files.

<form action="" method="post" enctype="multipart/form-data">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜