I'm using  the absolute path to the directory and didn't work.

/home/jordi/Escriptori/Setembre/mogose/SUBMISSIONS/BYUSER/1/

the path is correct cause if i put in the browser, the filesystem shows me
correctly the folder.


2014-09-07 13:01 GMT+02:00 Sergey Lyubka <[email protected]>:

> Path should be an absolute path to the directory.
> Not relative. Absolute. Starting from the filesystem root.
>
>
> On Sun, Sep 7, 2014 at 11:24 AM, jordi jordi90 <[email protected]>
> wrote:
>
>> It is the absolute path to the directory from mongose folder.
>>
>>
>>
>> 2014-09-07 12:03 GMT+02:00 jordi jordi90 <[email protected]>:
>>
>>> It still dosen't work, perhaps i'm doing something wrong with the
>>> absolute path :S
>>>
>>>
>>> 2014-09-06 23:29 GMT+02:00 Sergey Lyubka <[email protected]>:
>>>
>>>> convert URI to the absolute path.
>>>>
>>>>
>>>> On Sat, Sep 6, 2014 at 12:30 PM, <[email protected]> wrote:
>>>>
>>>>> Hi, I 'm developing and aplication that recives and saves code from
>>>>> the users.
>>>>> It saves each code in specific location, taking acount the id of the
>>>>> user that submited the code.
>>>>>
>>>>> After this the user look at the previous codes submitted by him.
>>>>>
>>>>> this is the piece of code that must work, but it isn't, and i dont
>>>>> know why. The URI is done in the right way, if I copy and paste it in the
>>>>> browser it works, and I'm able to acces to the user space, but using
>>>>> mg_send_file I'm having probems.
>>>>>
>>>>> else if (strcmp(conn->uri, "/checkSendedCode") == 0) {
>>>>>         char uri[30];
>>>>>         sprintf(uri, "SUBMISSIONS/BYUSER/%i", userID);
>>>>>         printf("uri = %s\n", uri);
>>>>>         mg_send_file(conn, uri);
>>>>>         return MG_MORE;
>>>>> }
>>>>>
>>>>>
>>>>> Thank you very much!!!!
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mongoose-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at http://groups.google.com/group/mongoose-users.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "mongoose-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/mongoose-users.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "mongoose-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/mongoose-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "mongoose-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mongoose-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to