попробуйте вручную загрузить файл с этих сайтов и посмотреть на скорость загрузки
может канал связи у сайта маленький,
дайте пример как это реализовать, в этом движке я недавно.
// таблица для статей
$this->createTable('{{%articles}}',
'id' => $this->primaryKey(),
'title' => $this->string(),
'body' => $this->text(),
)
// таблица для изображений
$this->createTable('{{%images}}',
'id' => $this->primaryKey(),
'path' => $this->string(),
'name' => $this->string(),
'id_articles' => $this->integer(11)
)
$this->createIndex('idx-articles_id', '{{%images}}', 'id_articles');
$this->addForeignKey('fk-articles-images_id', '{{%images}}', 'id_articles', 'id', '{{%articles}}', 'CASCADE', 'RESTRICT');
$model->unlinkAll('image', true);
имеет к внешнему ключу - не знаю.погуглил засчет внешнего ключа, и добавил строчку.
там что то про каскады пишут и миграции, неужто так сложно все
$path_to_dir = Yii::getAlias('@web') . '/upload/store/Adverts/Adverts'.$id;
<form id='test-form'>
<input type="text" name="ServiceID" value="111">
<input type="text" name="Quantity" value="222">
<input type="text" name="postq" value="333">
<input type="submit" name="submit">
</form>
<script>
$('#test-form').on('submit', function(e){
e.preventDefault();
var Data = $(this).serialize();
$.ajax({
url: 'test.php',
type: 'POST',
data: Data,
success: function(data){
console.log(data);
}
})
})
</script>
<?php
print_r($_POST);
Array
(
[ServiceID] => 111
[Quantity] => 222
[postq] => 333
)