Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Look at the schema and see if you can work out how to add rows to the image table.
Rob Church
On 20/12/05, Martin Baumann mailsgetlost@web.de wrote:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
My idea was to look at the image upload function and copy the part that creates entries into the database. I couldn't find the right file and line number. Did anyone do something similar and can help me in this thing?
My problem is, that I have a lot of pictures that I want to add to the wiki. So it may not be too complicated for a user to add the image to the wiki. Any other ideas how to do this?
Thanks, Martin
Rob Church schrieb:
Look at the schema and see if you can work out how to add rows to the image table.
Rob Church
On 20/12/05, Martin Baumann mailsgetlost@web.de wrote:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Is the /images directory writable by the web server? You may need to set global write (CHMOD 777) permissions on it.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
Hi,
is there a way to add images to the database without uploading them? Because I have massive problems bypassing save mode I upload image files by hand. But I cannot use [Image ...]. What can I do to use [Image ...] with these images?
Thanks, Martin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Yepp, also the subdirectories
Rob Church schrieb:
Is the /images directory writable by the web server? You may need to set global write (CHMOD 777) permissions on it.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
Is it possible that save mode makes mediawiki absolutely not able to upload images? And as admin of the mediawiki I have no chance to change this fact?
I tried anything I found in this mailing list and in the internet. But without success.
ohhhh :-(
Martin
Martin Baumann schrieb:
>Hi, > >is there a way to add images to the database without uploading them? >Because I have massive problems bypassing save mode I upload image files by hand. >But I cannot use [Image ...]. What can I do to use [Image ...] with these images? > >Thanks, Martin >______________________________________________________________ >Verschicken Sie romantische, coole und witzige Bilder per SMS! >Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > >_______________________________________________ >MediaWiki-l mailing list >MediaWiki-l@Wikimedia.org >http://mail.wikipedia.org/mailman/listinfo/mediawiki-l > > > > > > > > > _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Well, the temp. dir. it's attempting to copy from is not the one in the images dir. - it's the one on the web server. However, I'm not sure what the problem is here.
If you do a small, pilot install afresh, and without customising anything else, make the images dir. writable and set $wgEnableUploads = true in LocalSettings.php, does that work? If so, we know it's a MediaWiki configuration issue; if not, then it's something else we should look at.
Rob Church
On 24/12/05, Martin Baumann mailsgetlost@web.de wrote:
Yepp, also the subdirectories
Rob Church schrieb:
Is the /images directory writable by the web server? You may need to set global write (CHMOD 777) permissions on it.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
PHP's safe mode breaks a number of things MediaWiki uses, uploads being one of them. However, it is possible to work around the problem. Disable hashed uploads, create the individual images subdirectories and ensure those are writable, then enable uploads and see.
Be aware that safe mode configuration can and will cause other problems in other areas, some of which don't have corresponding workarounds.
Rob Church
On 22/12/05, Martin Baumann mailsgetlost@web.de wrote:
>Is it possible that save mode makes mediawiki absolutely not able to >upload images? >And as admin of the mediawiki I have no chance to change this fact? > >I tried anything I found in this mailing list and in the internet. But >without success. > >ohhhh :-( > >Martin > > > >Martin Baumann schrieb: > > > > > > > >>Hi, >> >>is there a way to add images to the database without uploading them? >>Because I have massive problems bypassing save mode I upload image files by hand. >>But I cannot use [Image ...]. What can I do to use [Image ...] with these images? >> >>Thanks, Martin >>______________________________________________________________ >>Verschicken Sie romantische, coole und witzige Bilder per SMS! >>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 >> >>_______________________________________________ >>MediaWiki-l mailing list >>MediaWiki-l@Wikimedia.org >>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >> >> >> >> >> >> >> >> >> >_______________________________________________ >MediaWiki-l mailing list >MediaWiki-l@Wikimedia.org >http://mail.wikipedia.org/mailman/listinfo/mediawiki-l > > > > > > > _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi,
I did what you said: New wiki installation. chmod 777 to images dir and subdirectories. Also $wgEnableUploads = true in LocalSettings.php. Same thing!
You wrote:
Well, the temp. dir. it's attempting to copy from is not the one in the images dir. - it's the one on the web server. However, I'm not sure what the problem is here.
Which temp directory is used? How can I find out which one it is? Is this a server setting or can I modify this thing within my wiki settings?
Thanks, Martin
Rob Church schrieb:
Well, the temp. dir. it's attempting to copy from is not the one in the images dir. - it's the one on the web server. However, I'm not sure what the problem is here.
If you do a small, pilot install afresh, and without customising anything else, make the images dir. writable and set $wgEnableUploads = true in LocalSettings.php, does that work? If so, we know it's a MediaWiki configuration issue; if not, then it's something else we should look at.
Rob Church
On 24/12/05, Martin Baumann mailsgetlost@web.de wrote:
Yepp, also the subdirectories
Rob Church schrieb:
Is the /images directory writable by the web server? You may need to set global write (CHMOD 777) permissions on it.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
>PHP's safe mode breaks a number of things MediaWiki uses, uploads >being one of them. However, it is possible to work around the problem. >Disable hashed uploads, create the individual images subdirectories >and ensure those are writable, then enable uploads and see. > >Be aware that safe mode configuration can and will cause other >problems in other areas, some of which don't have corresponding >workarounds. > > >Rob Church > >On 22/12/05, Martin Baumann mailsgetlost@web.de wrote: > > > > > > > > >>Is it possible that save mode makes mediawiki absolutely not able to >>upload images? >>And as admin of the mediawiki I have no chance to change this fact? >> >>I tried anything I found in this mailing list and in the internet. But >>without success. >> >>ohhhh :-( >> >>Martin >> >> >> >>Martin Baumann schrieb: >> >> >> >> >> >> >> >> >> >>>Hi, >>> >>>is there a way to add images to the database without uploading them? >>>Because I have massive problems bypassing save mode I upload image files by hand. >>>But I cannot use [Image ...]. What can I do to use [Image ...] with these images? >>> >>>Thanks, Martin >>>______________________________________________________________ >>>Verschicken Sie romantische, coole und witzige Bilder per SMS! >>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 >>> >>>_______________________________________________ >>>MediaWiki-l mailing list >>>MediaWiki-l@Wikimedia.org >>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>_______________________________________________ >>MediaWiki-l mailing list >>MediaWiki-l@Wikimedia.org >>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >> >> >> >> >> >> >> >> >> >_______________________________________________ >MediaWiki-l mailing list >MediaWiki-l@Wikimedia.org >http://mail.wikipedia.org/mailman/listinfo/mediawiki-l > > > > > > > > > _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
What is the upload command? Written in HTML? PHP?
Martin
Rob Church schrieb:
Well, the temp. dir. it's attempting to copy from is not the one in the images dir. - it's the one on the web server. However, I'm not sure what the problem is here.
If you do a small, pilot install afresh, and without customising anything else, make the images dir. writable and set $wgEnableUploads = true in LocalSettings.php, does that work? If so, we know it's a MediaWiki configuration issue; if not, then it's something else we should look at.
Rob Church
On 24/12/05, Martin Baumann mailsgetlost@web.de wrote:
Yepp, also the subdirectories
Rob Church schrieb:
Is the /images directory writable by the web server? You may need to set global write (CHMOD 777) permissions on it.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I did this things. But it doesn't help. As far as I can see the uploading process is done in file SpecialUpload.php in function processUpload(). At least the comments say so.
But which line exactly copies the file from local drive to the temp directory? How is the function named? Is it a standard php function? Or a mediawiki function?
This is really tricky to someone that has no experiences in php programming...
Martin
Rob Church schrieb:
>PHP's safe mode breaks a number of things MediaWiki uses, uploads >being one of them. However, it is possible to work around the problem. >Disable hashed uploads, create the individual images subdirectories >and ensure those are writable, then enable uploads and see. > >Be aware that safe mode configuration can and will cause other >problems in other areas, some of which don't have corresponding >workarounds. > > >Rob Church > >On 22/12/05, Martin Baumann mailsgetlost@web.de wrote: > > > > > > > > >>Is it possible that save mode makes mediawiki absolutely not able to >>upload images? >>And as admin of the mediawiki I have no chance to change this fact? >> >>I tried anything I found in this mailing list and in the internet. But >>without success. >> >>ohhhh :-( >> >>Martin >> >> >> >>Martin Baumann schrieb: >> >> >> >> >> >> >> >> >> >>>Hi, >>> >>>is there a way to add images to the database without uploading them? >>>Because I have massive problems bypassing save mode I upload image files by hand. >>>But I cannot use [Image ...]. What can I do to use [Image ...] with these images? >>> >>>Thanks, Martin >>>______________________________________________________________ >>>Verschicken Sie romantische, coole und witzige Bilder per SMS! >>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 >>> >>>_______________________________________________ >>>MediaWiki-l mailing list >>>MediaWiki-l@Wikimedia.org >>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>_______________________________________________ >>MediaWiki-l mailing list >>MediaWiki-l@Wikimedia.org >>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >> >> >> >> >> >> >> >> >> >_______________________________________________ >MediaWiki-l mailing list >MediaWiki-l@Wikimedia.org >http://mail.wikipedia.org/mailman/listinfo/mediawiki-l > > > > > > > > > _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
There is no "command" which performs the actual upload; the upload form contains a "file" field. Upon submission of the form, the web server and browser handle the upload between them, the former saves the uploaded file in a temp. dir.
The PHP functions handling the form submission will access this file using functions to get the file's name and location, and copy the file to a known location, in this case, the images dir., before adding information about the file to the database.
You might write a simple HTML form and a PHP script which handles it. The form would contain a file field, the script would attempt to copy the uploaded file from the temp. dir. to another directory. If you encounter errors here, then it's almost certainly a global configuration error. If not, then it's probably still a configuration error, but restricted to MediaWiki.
Rob Church
On 27/12/05, Martin Baumann mailsgetlost@web.de wrote:
What is the upload command? Written in HTML? PHP?
Martin
Rob Church schrieb:
Well, the temp. dir. it's attempting to copy from is not the one in the images dir. - it's the one on the web server. However, I'm not sure what the problem is here.
If you do a small, pilot install afresh, and without customising anything else, make the images dir. writable and set $wgEnableUploads = true in LocalSettings.php, does that work? If so, we know it's a MediaWiki configuration issue; if not, then it's something else we should look at.
Rob Church
On 24/12/05, Martin Baumann mailsgetlost@web.de wrote:
Yepp, also the subdirectories
Rob Church schrieb:
Is the /images directory writable by the web server? You may need to set global write (CHMOD 777) permissions on it.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
I am not shure what exactly my problem is... I press upload button, it takes a few seconds, then an error message is shown:
Could not copy file "/tmp/php8DaiV2" to "/home/ws/ry149/.public_html/wiki/images/Cutplane_snapshot.png".'
There aren't any files in images/tmp directory. So I guess that not even these uploads to the temp directory are done correct. Then Mediawiki cannot copy file from temp to destination directory (as in the message). But what makes the browkser not to be able to upload files? I am not an export in web-servers and so. I should do a "little wiki" for an programming project. Maybe I am looking for the wrong things... I thought it would be a good idea to look for the command that uploads the file (from local to temp directory).
Martin
Rob Church schrieb:
The actual uploading bit's done by the browser and the web server; the PHP script calls functions which finds out where the file content has gone and what the file's called at that precise moment, amongst other things.
I'm not sure what you're trying to achieve.
Rob Church
On 23/12/05, Martin Baumann mailsgetlost@web.de wrote:
>I did this things. But it doesn't help. >As far as I can see the uploading process is done in file >SpecialUpload.php in function >processUpload(). At least the comments say so. > >But which line exactly copies the file from local drive to the temp >directory? >How is the function named? Is it a standard php function? Or a mediawiki >function? > >This is really tricky to someone that has no experiences in php >programming... > > >Martin > > > >Rob Church schrieb: > > > > > > > >>PHP's safe mode breaks a number of things MediaWiki uses, uploads >>being one of them. However, it is possible to work around the problem. >>Disable hashed uploads, create the individual images subdirectories >>and ensure those are writable, then enable uploads and see. >> >>Be aware that safe mode configuration can and will cause other >>problems in other areas, some of which don't have corresponding >>workarounds. >> >> >>Rob Church >> >>On 22/12/05, Martin Baumann mailsgetlost@web.de wrote: >> >> >> >> >> >> >> >> >>>Is it possible that save mode makes mediawiki absolutely not able to >>>upload images? >>>And as admin of the mediawiki I have no chance to change this fact? >>> >>>I tried anything I found in this mailing list and in the internet. But >>>without success. >>> >>>ohhhh :-( >>> >>>Martin >>> >>> >>> >>>Martin Baumann schrieb: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>Hi, >>>> >>>>is there a way to add images to the database without uploading them? >>>>Because I have massive problems bypassing save mode I upload image files by hand. >>>>But I cannot use [Image ...]. What can I do to use [Image ...] with these images? >>>> >>>>Thanks, Martin >>>>______________________________________________________________ >>>>Verschicken Sie romantische, coole und witzige Bilder per SMS! >>>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 >>>> >>>>_______________________________________________ >>>>MediaWiki-l mailing list >>>>MediaWiki-l@Wikimedia.org >>>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>MediaWiki-l mailing list >>>MediaWiki-l@Wikimedia.org >>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >>> >>> >>> >>> >>> >>> >>> >>> >>> >>_______________________________________________ >>MediaWiki-l mailing list >>MediaWiki-l@Wikimedia.org >>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l >> >> >> >> >> >> >> >> >> >_______________________________________________ >MediaWiki-l mailing list >MediaWiki-l@Wikimedia.org >http://mail.wikipedia.org/mailman/listinfo/mediawiki-l > > > > > > > _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org