class File(models.Model):
file = models.FileField(upload_to='files',
help_text=_("file itself"))
page = models.ForeignKey(page)
and my urls.py :
json_File_resource = Collection(
queryset = File.objects.all(),
authentication = HttpBasicAuthentication(),
permitted_methods = ('GET', 'POST', 'PUT', 'DELETE'),
receiver = JSONReceiver(),
responder = JSONResponder()
)
urlpatterns = patterns('',
....
....
url(r'^json/CampaignFile/(.*?)/?$',json_File_resource),
...
)
The GET works and the PUT to other field too but not the POST or the
PUT on filefield Field.
How i can pass the local file to the remote Service in the JSON
string?
Please Help Me!!!
Manuel